The compiler is correct. "main" must return an integer:
However, you do not need to provide the return value (IIRC, the default is 0, but I could be wrong).Code:#include <iostream> int main() { std::cout << "Hello World!" << std::endl; }
Viggy
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Threaded View
|
Click Here to Expand Forum to Full Width |