• Advertisement
Sign in to follow this  

Hello world

This topic is 4838 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

why won't this build...it's a c++.net //a small C++ program #include <iostream> in main() { std::cout << "Hello, World" << std::endl; return 0; } i realize this is dumb but grrrrrrrr!

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by grim_reaper7
why won't this build...it's a c++.net

//a small C++ program
#include <iostream>

in main()
{
std::cout << "Hello, World" << std::endl;
return 0;
}


i realize this is dumb but grrrrrrrr!


Try using int as return type for main().

Share this post


Link to post
Share on other sites
Let me guess ... you saw "Visual" in the name of the forum, so you thought it was a Visual C++ forum ?
Good Lord, no wonder you missed such a simple typo...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement