No, no, that's no good. First of all, it's complete nonsense, and second, where is your sense of object orientation, man?
#include <iostream.h>
class InfiniteBeer {
public:
InfiniteBeer() {
while( 1 )
cout << "Infinity bottles of"
" beer on the wall!"
"\nInfinity bottles"
" of beer,\nTake one"
" down, pass it around"
".\nInfinity bottles"
" of beer!\n\n";
}
};
int main() {
InfiniteBeer object;
return 0;
}
See, why use C++ if you're not going to take full advantage of it? And I don't even know why you bothered with that fancy GPL header...