Bored
#1
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...
#6
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.
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.
#7
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.
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.
#8
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.
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.
#9
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.
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.
kevin.