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 GNU CPP

(include version)

Date:10/12/06
Author:Thomas Liske
URL:http://fiasko.dyndns.org/~thomas/
Comments:0
Info:n/a
Score: (3.00 in 11 votes)
/*****************************************************************************/
/*   bottles.cpp                                                             */
/*   2006 Thomas Liske <thomas@fiasko.dyndns.org>                            */
/*                                                                           */
/*   Usage: cpp -P bottles.cpp                                               */
/*                                                                           */
/*****************************************************************************/
#define TOD(n) Take one down and pass it around, n bottles of beer on the wall.
#define BOW(n,m) n bottles of beer on the wall, m bottles of beer.
#if __INCLUDE_LEVEL__ < 99
#include __FILE__
#if __INCLUDE_LEVEL__ > 0
TOD(__INCLUDE_LEVEL__)
#else
TOD(no more)
#endif
#endif
#if __INCLUDE_LEVEL__ > 0
BOW(__INCLUDE_LEVEL__,__INCLUDE_LEVEL__)
#else
BOW(No more,no more)
Go to the store and buy some more, 99 bottles of beer on the wall.
#endif

Download Source | Write Comment

Alternative Versions

VersionAuthorDateCommentsRate
1Walter Zimmer04/20/050

Comments

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: