yes it’s possible to print a string to the console.
#include “stdafx.h”
#include
#include
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
string strMytestString(“hello world”);
cout << strMytestString;
return 0;
}
stdafx.h isn't pertinent to the solution, everything else is.
All you have to do is add:
#include
using namespace std;
at the top.
(BTW I know this was posted in 2013 but I just wanted to answer)