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