Skip navigation

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?

5 Comments

    • goatman93
    • Posted April 14, 2006 at 20:21 (8:21 pm)
    • Permalink

    In peasants quest you can. :P

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

    • Joe
    • Posted April 15, 2006 at 03:20 (3:20 am)
    • Permalink

    Careful with those babies, don’t want your program to end in abortion.

    • Babytosser
    • Posted April 27, 2006 at 21:52 (9:52 pm)
    • Permalink

    … i smack you around for mocking my job!

  2. Nothing like having fun prograamming.


Comments are closed.