Language c++
(ob fuscated)
Date: | 08/11/05 |
Author: | Tapi (Paddy O'Brien) |
URL: | n/a |
Comments: | 2 |
Info: | http://www.sgi.com/tech/stl/ |
Score: | (3.25 in 4 votes) |
/* obfuscated 99 bottles program in c++ coded by paddy obrien */ #include <iostream> using namespace std; void beer(int,int); void wall(); int main() { int bottles =99; while (bottles) {for(int i=0; i < 2; ++i) beer( bottles,i); cout << "take one down pass it around" << endl; beer (--bottles, 0) ;cout << endl;} return 0 ;} void beer (int bottles, int i) {cout << bottles << " bottle(s) of beer "; if(!i) wall(); else cout << endl;} void wall(){ cout << "on the wall" <<endl;} /*Yeah I know it's a sorry excuse for a bottle but given how little code was required it's the best I could/felt like doing, oh and by the way all the comments \are purely filler */
Download Source | Write Comment
Alternative Versions
Version | Author | Date | Comments | Rate |
---|---|---|---|---|
extreme template metaprogramming | Richard Wolf | 04/20/05 | 5 | |
meta programming | Arion Lei | 04/20/05 | 2 | |
hacking style | Tim Robinson | 04/20/05 | 6 | |
object-oriented version | Tim Robinson | 04/20/05 | 2 | |
Preprocessor & self-include recursion | Chocapic | 02/27/07 | 0 | |
GUI version | Martyn Davies | 05/28/05 | 0 |
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments
Pulseczar said on 07/29/06 08:38:27
the fug?
Anonymous said on 12/20/06 00:49:18
It looks like a beer bottle.
Also, not that obsfucated...