C++ Humor
Filed in: Code Add comments
C++ is fun!
#include
using namespace std;
class Babies {};
int
main()
{
try {
throw Babies();
} catch(class Babies e) {
cout << "Congratulations. You caught the babies." << endl;
}
return 0;
}
I mean, come on…where else can you legally throw Babies?
April 14th, 2006 at 20:21 (8:21 pm)
In peasants quest you can. :P
April 14th, 2006 at 20:21 (8:21 pm)
At least you catch them… you usually can throw babies if you catch them. Otherwise your program commits an illegal action.
Oh come on, that’s a great pun.
April 15th, 2006 at 03:20 (3:20 am)
Careful with those babies, don’t want your program to end in abortion.
April 27th, 2006 at 21:52 (9:52 pm)
… i smack you around for mocking my job!
May 6th, 2006 at 22:45 (10:45 pm)
Nothing like having fun prograamming.