RTSE out! 2.0’s “Addons Manager”

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?

5 Responses to “C++ Humor”

  1. goatman93 Says:

    In peasants quest you can. :P

  2. Reed Says:

    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.

  3. Joe Says:

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

  4. Babytosser Says:

    … i smack you around for mocking my job!

  5. h2freak Says:

    Nothing like having fun prograamming.