Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-22-2004, 08:44 PM
Kambic
Sarnak
 
Join Date: May 2003
Posts: 35
Default Jr Dev Code

#include <iostream.h>

int main()
{
<<
cout "Hello, World!"
<<
endl;
return 0;
}
Reply With Quote
  #2  
Old 05-22-2004, 08:49 PM
kathgar
Discordant
 
Join Date: May 2002
Posts: 434
Default

You fail.
__________________
++[>++++++<-]>[<++++++>-]<.>++++[>+++++<-]>[<
+++++>-]<+.+++++++..+++.>>+++++[<++++++>-]<+
+.<<+++++++++++++++.>.+++.------.--------.>+.
Reply With Quote
  #3  
Old 05-22-2004, 08:54 PM
gandar
Sarnak
 
Join Date: Apr 2004
Location: West Sacramento, CA
Posts: 84
Default

I think my eyes are bleeding...
Reply With Quote
  #4  
Old 05-22-2004, 09:43 PM
cofruben
Old-EQEmu Developer
 
Join Date: Oct 2002
Location: Spain
Posts: 323
Default

lol...
Reply With Quote
  #5  
Old 05-23-2004, 05:21 AM
Virus11
Discordant
 
Join Date: May 2004
Posts: 311
Default

Copied that from a tutorial site :lol:
__________________

Reply With Quote
  #6  
Old 05-24-2004, 01:11 AM
zarcath
Fire Beetle
 
Join Date: May 2004
Posts: 9
Default

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

-Z
Reply With Quote
  #7  
Old 05-24-2004, 01:17 AM
Mongrel
Hill Giant
 
Join Date: Jul 2003
Location: Germany
Posts: 232
Default

Duh, and you can't even write "endl;" correctly.
Reply With Quote
  #8  
Old 05-29-2004, 03:32 PM
HeliosSunfury
Fire Beetle
 
Join Date: May 2004
Location: Red Deer
Posts: 1
Default

Nevermind that the cout has no stream insertion operators.
Reply With Quote
  #9  
Old 05-29-2004, 03:51 PM
govtcheeze
Hill Giant
 
Join Date: Mar 2004
Location: South Florida
Posts: 247
Default

Quote:
Last edited by Kambic on 05-25-2004 12:14 AM; edited 1 time in total
owned!
__________________
GovtCheeze, Welfare Warrior
"Listen, here's the thing. If you can't spot the sucker in the first half hour at the table, then you ARE the sucker." -- Mike McDermott, Rounders

Developer of the original (circa 2004):
Loots v2.0, bitch!
Faction v1.0, bitch!
Magelo-like clone v0.3, bitch!
Zone geometry and spawn/path viewer, bitch!
Reply With Quote
  #10  
Old 05-30-2004, 03:03 AM
Virus11
Discordant
 
Join Date: May 2004
Posts: 311
Default

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.
__________________

Reply With Quote
  #11  
Old 05-31-2004, 03:36 PM
Yeormom
Discordant
 
Join Date: Apr 2004
Location: 127.0.0.1
Posts: 402
Default

You would have had better luck if you voided main imo.
__________________
Yeorwned
Bane of Life [Custom Classic/PvP]
Reply With Quote
  #12  
Old 06-01-2004, 01:25 AM
m0oni9
Hill Giant
 
Join Date: Dec 2003
Posts: 166
Default

main always returns int.
Reply With Quote
  #13  
Old 06-01-2004, 02:50 AM
Pyrix
Sarnak
 
Join Date: May 2004
Location: Germany
Posts: 68
Default

Pls make a multiple Choice question with cin and cout ^^
Reply With Quote
  #14  
Old 06-02-2004, 08:06 AM
Kambic
Sarnak
 
Join Date: May 2003
Posts: 35
Default

#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;
}
__________________
Sojourneying on the Path to Eternity...
Reply With Quote
  #15  
Old 06-02-2004, 05:25 PM
mangoo
Items Master
 
Join Date: Apr 2003
Posts: 293
Default

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 !!!
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:56 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3