Thread: C++ Help Please
View Single Post
Old 07-05-2005, 04:02 AM   #2 (permalink)
tspier2
 
Newb Techie

Join Date: Jul 2005

Posts: 9

tspier2

Send a message via Yahoo to tspier2
Default

Half of the code you typed is C, and the other half is C++. Here is what you need to print Hello World on the screen:

#include <iostream>
using namespace std;
int main()
{
cout<<"Hello World!";
system("pause");
return 0;
}

Without the system("pause"); it will close in one second in a win32 environment.
tspier2 is offline