I'm disappointed I haven't been seeing more obfuscated C++ tricks like using the preprocessor definitions and implicit string concatenation to shrink the string literals. For instance, "bottles of beer" is repeated in a number of places in both of those code samples so you can use things like#define B "bottles of beer" printf("No more " B " on the wall, no more " B ".\n"You guys are actually producing readable code.
challanged accepted: http://codepad.org/jHzuL4zd
not sure what you guys are using to do non-whitespace counting, but i don't feel like counting them all to give a number.
edit: made minor fix.