Kamikaze_Badger Posted July 31, 2005 Posted July 31, 2005 (edited) Tried to make a "Guess the Numbar!11!1!11!1OONEOENEONE" game... #include <iostream> #include <stdlib.h> #include <time.h> using namespace std; srand(time(NULL)); long theNumber = rand()%999999999999; long guess; int main() { cout << "Guess the number!\nYour guess> "; cin >> guess; if(guess!=theNumber) { cout << "YOU ARE GAY! GET THE $#@! OUT!\n\n\n"; system("pause"); } else { cout << "YOU ARE HACKING! GET THE $*&! OUT!\n\n\n"; system("pause"); } return 0; } What did I do wrong this time? PS It's motivational, I swear! Edited July 31, 2005 by Kamikaze_Badger Share this post Link to post Share on other sites More sharing options...
markiemrboo Posted July 31, 2005 Posted July 31, 2005 #include <iostream> #include <stdlib.h> #include <time.h> using namespace std; srand(time(NULL)); <---- this shouldn't be here long theNumber = rand()%999999999999; long guess; That's all I can see..... at the moment...... EDIT: that srand() thing should be in main() with everything else And I found a me with short hair be very afraid.. vs Share this post Link to post Share on other sites More sharing options...
swifty11212 Posted July 31, 2005 Posted July 31, 2005 omg it looks like jesus j/k Share this post Link to post Share on other sites More sharing options...
Kamikaze_Badger Posted July 31, 2005 Posted July 31, 2005 (edited) How does the rand function get seeded then? Btw, the one of the left is a bit sexier than the one on the right... did you have poor C coding skills back then? EDIT: OOOOOOH, dang.... I be stupid. Edited July 31, 2005 by Kamikaze_Badger Share this post Link to post Share on other sites More sharing options...
markiemrboo Posted July 31, 2005 Posted July 31, 2005 omg it looks like jesus j/k 520023[/snapback] lol that's not the first time I have heard that one everyone says that How does the rand function get seeded then?Btw, the one of the left is a bit sexier than the one on the right... did you have poor C coding skills back then? 520024[/snapback] You can use srand() just... no actual code should be outside of a function. I made an edit to that post saying to put it in with main() (at the top) yes, yes I did. Very poor indeed. Share this post Link to post Share on other sites More sharing options...
Byron Posted July 31, 2005 Posted July 31, 2005 #include <iostream>#include <stdlib.h> #include <time.h> using namespace std; srand(time(NULL)); <---- this shouldn't be here long theNumber = rand()%999999999999; long guess; That's all I can see..... at the moment...... EDIT: that srand() thing should be in main() with everything else And I found a me with short hair be very afraid.. vs 520021[/snapback] LOL markie you look exactly like this guy who has been stealing from my work. Share this post Link to post Share on other sites More sharing options...
markiemrboo Posted July 31, 2005 Posted July 31, 2005 LOL markie you look exactly like this guy who has been stealing from my work. 520026[/snapback] hahaha *hides* Share this post Link to post Share on other sites More sharing options...
Kamikaze_Badger Posted July 31, 2005 Posted July 31, 2005 So, if I cut off your hair... <later on at night> "Oh Markie! The BASIC coders are coming again!" <Markie runs to open up Dev-C++> "Omg... I forgot which includes to use... NOOOOO! WHERE'S MY HAIR!?" Share this post Link to post Share on other sites More sharing options...
Puck Posted July 31, 2005 Posted July 31, 2005 hahaha *hides* 520027[/snapback] lmao, you look a good 10 years older with long hair Share this post Link to post Share on other sites More sharing options...
Kamikaze_Badger Posted July 31, 2005 Posted July 31, 2005 Really? He's only 2,004 years old . Share this post Link to post Share on other sites More sharing options...
markiemrboo Posted July 31, 2005 Posted July 31, 2005 So, if I cut off your hair... <later on at night> "Oh Markie! The BASIC coders are coming again!" <Markie runs to open up Dev-C++> "Omg... I forgot which includes to use... NOOOOO! WHERE'S MY HAIR!?" 520028[/snapback] an example of what I was writing back at the time that picture was taken (around 2 years ago.. college time?) This was actually... one of my assignments lmao, you look a good 10 years older with long hair 520029[/snapback] I've been told I look a few years older when wearing my glasses yikes!!! Share this post Link to post Share on other sites More sharing options...
Kamikaze_Badger Posted July 31, 2005 Posted July 31, 2005 Dear sweet Jesus it's Pascal! *dives under his desk* Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now