I finally tracked down a bug that seems to be messing with the definition of a string. What in the following code is wrong? It will not compile or run, and the message I keep getting is 'no such operator', referring to the <<.
#include <iostream>
using namespace std;
int main (){
string str = "Hello, World!";
cout << str;
return 0;
}
Edit: I also attempted the following code in the main body.