Original Post
This is an example from a book, but it doesn't seem to build. Any help?
the error
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
#include <iostream>
using namespace std;
int main()
{
string mystring;
mystring = "Hello there";
cout << mystring << endl;
system("pause");
return 0;
}
the error
[
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> while trying to match the argument list '(std::ostream, std::string)'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========