Sign in to follow this  
grim_reaper7

Hello world

Recommended Posts

grim_reaper7    103
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
Boku San    428
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
ahw    264
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this