Hello, I have this very simple program which won't compile. Please help me!
I get the error:Code:#include <iostream>
#include <string>
#include "stdafx.h"
int main()
{
std::string name("This is a test!");
std::cout << name << std::endl;
return 0;
}
error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
I am using Visual c++ .NET. Can someone please tell me why this doesn't work?
thanks!