help
help
please help i need help!
hurry, please help me! i must turn this in in a minute!
Yes, you do...
Here's a hello world program for you... Beyond that, I can only advise picking up a book and reading. Also, don't reply to your own posts 5 minutes after you make them.
Actually - I'm going to let you flounder. This program can be done in 2 seconds if you actually pick up a book, and since you've already bumped this thread twice, I'll just let you suffer.
-Govtcheez
[email protected]
You need to have...
#include <iostream.h>
...before main().
Your main() should return an int i.e.
int main()
Strings need to be in double quotes and statements within your main() need a ; after them eg...
cout << "Hello World!";
return 0;
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
HaHa...you sure do.
main()
{cout<<hello world
return 0}
How about this:
cout is an object, and objects arnt built in. Its defined elsehwere, so to start you need:
include<iomanip.h>
next prob...your returning 0, but main isnt set to return anything...heck its not even set as void...and it takes no params, spo that should be void...so...
int main(void)
and lastly...code lines end in a semi colon.
Putting it all together...
Code:include<iomanip.h> int main(void { cout << "Hello World"; return 0; }
Last edited by TrojanGekko; 02-22-2002 at 09:47 AM.
______________________
The Gekko
Sorry cheez, concurrence again, but I think that it is a first for me at least, that someone has bumped their thread twice while I was typing an answer. One for the record books huh? Guess no more help here. Now, let me see that IP address again...!
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
thanx u guys were more helpful than govtcheez
and please dont hack me adiran...
lol thats the funniest program i ever saw! we actually read the first chapter before we even got to turn on the computers in my class lol...
and that hello world thing is in the main page of this site! you could have copied and pasted it...
well i guess we were all newbie once...and i still am...but this is ridiculous
Paro