Hello world

Started by
3 comments, last by JTippetts 19 years, 4 months ago
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!
Grim_reaper7Lamp Geekz
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().
Things change.
stupid typo..."in" corrected w/ "int"
thanks for the advice
Grim_reaper7Lamp Geekz
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...
-----------------------------Sancte Isidore ora pro nobis !
Apparently resolved, but still belongs elsewhere. Moved to Beginners.

This topic is closed to new replies.

Advertisement