View Single Post
Old May 31st, 2006, 3:37 PM   #12
Zephirus
Newbie
 
Zephirus's Avatar
 
Join Date: May 2006
Posts: 12
Rep Power: 0 Zephirus is on a distinguished road
#include <iostream>

using namespace std;

int main()

{
cout << "HEY, you, I'm alive! Oh, and Hello World!" << endl;
cin.get();

return 0;
}


I changed the \n I know its good C++ practice to use it but I can type endl a lot faster than \n so thats what I walways use. Sometimes you have to put 2 "cin.get();" in there. I know I have to on most of mine to test.

Change the return 1 to return 0 though. With this function, you dont need to return anything at all.


I dont see why this should fail.


OH I just thought of something. in my C++ IDE i have to have to have another include something like staffix.h or something.. Not sure what it is for since im just starting also.
Zephirus is offline   Reply With Quote