EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=621)
-   -   Jr Dev Code (https://www.eqemulator.org/forums/showthread.php?t=13932)

Kambic 05-22-2004 08:44 PM

Jr Dev Code
 
#include <iostream.h>

int main()
{
<<
cout "Hello, World!"
<<
endl;
return 0;
}

kathgar 05-22-2004 08:49 PM

You fail.

gandar 05-22-2004 08:54 PM

I think my eyes are bleeding...

cofruben 05-22-2004 09:43 PM

lol...

Virus11 05-23-2004 05:21 AM

Copied that from a tutorial site :lol:

zarcath 05-24-2004 01:11 AM

lol, I have the c++ book that has that exact excersize.

-Z

Mongrel 05-24-2004 01:17 AM

Duh, and you can't even write "endl;" correctly.

HeliosSunfury 05-29-2004 03:32 PM

Nevermind that the cout has no stream insertion operators.

govtcheeze 05-29-2004 03:51 PM

Quote:

Last edited by Kambic on 05-25-2004 12:14 AM; edited 1 time in total
owned!

Virus11 05-30-2004 03:03 AM

Quote:

Originally Posted by govtcheeze
Quote:

Last edited by Kambic on 05-25-2004 12:14 AM; edited 1 time in total
owned!

If I were to edit anything I would just delete all of it.

Yeormom 05-31-2004 03:36 PM

You would have had better luck if you voided main imo.

m0oni9 06-01-2004 01:25 AM

main always returns int.

Pyrix 06-01-2004 02:50 AM

Pls make a multiple Choice question with cin and cout ^^

Kambic 06-02-2004 08:06 AM

#include <iostream>
#include <string>
using namespace std;

int main()
{
string answer;


while (answer != "Y")
{
cout << "Should Kambic be the next EQEmu Developer?" << endl;
cout << "Please type Y for 'Yes' or N for 'No':" << endl;
cin >> answer;
if (answer != "Y")
{
cout << "die irl plz" << endl;
}

}
cout << "you are teh WIN !!!" << endl;

return 0;
}

mangoo 06-02-2004 05:25 PM

Quote:

Originally Posted by Kambic
#include <iostream>
#include <string>
using namespace std;

int main()
{
string answer;


while (answer != "Y")
{
cout << "Should Kambic be the next EQEmu Developer?" << endl;
cout << "Please type Y for 'Yes' or N for 'No':" << endl;
cin >> answer;
if (answer != "Y")
{
cout << "die irl plz" << endl;
}

}
cout << "you are teh WIN !!!" << endl;

return 0;
}

N -- Oh btw, it will always return the "you are teh WIN !!!" line because you didn't include "return 0;" in your if statement. So i r teh WIN !!!


All times are GMT -4. The time now is 06:10 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.