70470 Posts in 6879 Topics - by 687 Members - Latest Member: Laricwashere

Author Topic: void do_FITES_LAN()  (Read 959 times)

Offline Agent4054

  • 3D Modeler
  • Godlike Gamer
  • *
  • Posts: 6471
  • Karma: 0
  • Jerky is love. Jerky is life.
  • Steam ID: agent4054
  • XFire: Agent4054
void do_FITES_LAN()
« on: August 18, 2007, 11:39:36 AM »
 void do_FITES_LAN(int numPeople) {
     bool lanning = true;
     vector<CLanningPerson> lanningPeople;
     vector<CLanningPerson>::iterator iLanningPerson;
 
     for(int i=0; i<numPeople; i++) {
         lanningPeople.push_back(new CLanningPerson());
     }
 
     while(lanning) {
         for(
           iLanningPerson = lanningPeople.begin();
           iLanningPerson != lanningPeople.end();
           iLanningPerson++
         )
         {
             iLanningPerson.drink_redbull();
             iLanningPerson.play_games();
             iLanningPerson.make_noise();
             iLanningPerson.have_fun();
         }
     }
 }
 
 int main() {
     do_FITES_LAN(160); //HELL YEAH!!!
     return 0;
 }



There you go. Since I'm tired and .... yeah :P

Offline llDayo

  • Vintage VIP
  • Elite Gamer
  • *
  • Posts: 590
  • Karma: 0
  • ACE
  • XFire: llDayo
Re: void do_FITES_LAN()
« Reply #1 on: August 20, 2007, 09:20:41 AM »
You should have used user input for the numPeople variable as 160 would have thrown an error for this weekend. :)

NerdTests.com says I'm a Cool High Nerd.  What are you?  Click here!