I am using a book called "Teach yourself C++" and want to use its first example piece of code to create a basic Hello World app. However, I can't build it, as the Build and Build and go buttons are greyed out.
Here is the code (Sans the irrelevant comments at top):
Does anyone know why it won't work? The code is copied perfectly from the book. Thanks alot.
Here is the code (Sans the irrelevant comments at top):
Code:
#include <iostream>
int main();
int main()
{
std::cout << "Hello World!\n";
return 0;
}
Does anyone know why it won't work? The code is copied perfectly from the book. Thanks alot.