Insert BS here A place to discuss anything you want!

Bored

Old Aug 21, 2003 | 11:27 PM
  #1  
Rotarydragon's Avatar
Thread Starter
Senior Member
 
Joined: Feb 2002
Posts: 1,381
From: Close enough to annoy you.
Default

Code:
#include <iostream>



using namespace std;



int main(void)

{



	int intBottles = 99;



	for (int intCount = 100;intCount !=0;intCount--)

	{





	if (intBottles)

	{

  if(intBottles ==1)

  {

 	 cout << intBottles << " bottle of beer on the wall " << intBottles << " bottle of beer!" << endl;

 	 cout << "Take one down, pass it around no more bottles of beer on the wall." << endl;

 	 intBottles--;

  }

  else

  {cout << intBottles << " bottles of beer on the wall " << intBottles << " bottles of beer!" << endl;

  cout << "Take one down, pass it around " << intBottles - 1 << " bottles of beer on the wall." << endl;

  intBottles--;

  }

	}

	else



	{

  cout << endl;

  cout << endl;

  cout << "******* drunks!";

	}





	}



	system("pause");



}




HEEELLLLPPPPP MEEEEEEEEEEEEEE!



Bored....so bored...
Old Aug 21, 2003 | 11:35 PM
  #2  
GoRacer's Avatar
Senior Member
 
Joined: Aug 2002
Posts: 840
From: O.C. - CA.
Default

Hmm, you must have the same job as me. Just shoot me now, ack.
Old Aug 22, 2003 | 11:03 AM
  #3  
j9fd3s's Avatar
Senior Member
 
Joined: May 2002
Posts: 22,465
From: California
Default

wow.
Old Aug 22, 2003 | 11:06 AM
  #4  
75 Repu's Avatar
Senior Member
 
Joined: Aug 2002
Posts: 4,848
From: Mike is a Liar!
Default

oi
Old Aug 22, 2003 | 11:15 AM
  #5  
rfreeman27's Avatar
Senior Member
 
Joined: Dec 2002
Posts: 4,107
From: fredneck MD
Default

Old Aug 22, 2003 | 11:18 AM
  #6  
teknics's Avatar
Senior Member
 
Joined: Dec 2002
Posts: 4,837
From: Wayne, NJ
Default

RD you messed up, there's a bug.



when you have 2 bottles left this is what it will say:



2 bottles of beer on the wall 2 bottles of beer!

Take one down, pass it around 1 bottles of beer on the wall.



so you need a little more work on it.



kevin.
Old Aug 22, 2003 | 12:47 PM
  #7  
Rotarydragon's Avatar
Thread Starter
Senior Member
 
Joined: Feb 2002
Posts: 1,381
From: Close enough to annoy you.
Default

OH NO MY JOB AS A COMPUTER PROGRAMMER IS DOOOOOOOOMMMMEEEDDDDD!



You're just lucky I added any code to half *** correct the plural. *sniffs*



Noone is every happy with my work.....



Actually I'm not sure what's scarier, that I sat down and jotted down this program or that someone actually compiled it and ran it.
Old Aug 22, 2003 | 01:07 PM
  #8  
j9fd3s's Avatar
Senior Member
 
Joined: May 2002
Posts: 22,465
From: California
Default

Originally Posted by Rotarydragon' date='Aug 22 2003, 09:47 AM
OH NO MY JOB AS A COMPUTER PROGRAMMER IS DOOOOOOOOMMMMEEEDDDDD!



You're just lucky I added any code to half *** correct the plural. *sniffs*



Noone is every happy with my work.....



Actually I'm not sure what's scarier, that I sat down and jotted down this program or that someone actually compiled it and ran it.
yes, thats like a doomsday machine
Old Aug 22, 2003 | 01:26 PM
  #9  
teknics's Avatar
Senior Member
 
Joined: Dec 2002
Posts: 4,837
From: Wayne, NJ
Default

Originally Posted by Rotarydragon' date='Aug 22 2003, 12:47 PM
OH NO MY JOB AS A COMPUTER PROGRAMMER IS DOOOOOOOOMMMMEEEDDDDD!



You're just lucky I added any code to half *** correct the plural. *sniffs*



Noone is every happy with my work.....



Actually I'm not sure what's scarier, that I sat down and jotted down this program or that someone actually compiled it and ran it.
i didnt compile and run it, i read the coding.



kevin.
Old Aug 22, 2003 | 02:33 PM
  #10  
Apex13B's Avatar
Senior Member
 
Joined: Nov 2002
Posts: 1,679
From: Colorado Springs
Default

i ran it



no werky

Thread Tools
Search this Thread

All times are GMT -5. The time now is 08:37 PM.