How come the following return compile errors on Linux?
- Code: Select all
// How to think like a computer scientist C++ Version
// main: generate some simple output
void main ()
cout << "Hello, world." << endl;
// Sams Teach Yourself C++ in 1 Hour a Day 6th Ed (from 2008)
std::cout << “Hello World!\n”;
I know (thanks to youtube) how output Hello World without problems, but I was just wondering why the above fail?...and do you guys have any recommendations for a thorough C++ learning source for Linux?