Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++

Name: Anonymous 2008-07-15 14:50

#include <iostream>

main()
{
std::cout << "Hello World!" << std::endl;
}

What am I doing wrong here? The cmd just flashes and close. It doesn't display hello world.

Name: Anonymous 2008-07-15 20:55

>>18
Sorry, I started it in C, then moved to C++, because OP is in C++, but didn't change it all.

#include <iostream>
#include <cstdlib>

using namespace std;

int main (void)
{
   cout << "Hellow, World!" << endl;
   system("pause");
   return 0;
}

Please excuse the Cfag for trying to be helpful on /prog/.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List