Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

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

VersionAuthorDateCommentsRate
extreme template metaprogrammingRichard Wolf04/20/055
meta programmingArion Lei04/20/052
hacking styleTim Robinson04/20/056
object-oriented versionTim Robinson04/20/052
Preprocessor & self-include recursionChocapic02/27/070
GUI versionMartyn Davies05/28/050

Comments

>>  Pulseczar said on 07/29/06 08:38:27

Pulseczar the fug?

>>  Anonymous said on 12/20/06 00:49:18

Anonymous It looks like a beer bottle.
Also, not that obsfucated...

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!

Name:

eMail:

URL:

Security Code:
  
Comment: