2

Ok I'm sure this will get closed as its probably not a real question, but before that happens, I'm really curious on something: Why is this program erroneously rejected by three C++ compilers?

I'm just now taking a data structures and algorithms course, so I'm not really skilled in C++ and have only dealt with basic stuff, so I have no idea what the above joke is all about. Its gotten so many votes and people said they couldnt stop laughing, but I dont get it at all. Can someone explain this?

Community
  • 1
  • 1
Snowman
  • 31,411
  • 46
  • 180
  • 303
  • 2
    He tried to compile the `.png`, not a textfile with that code. – CanSpice Apr 01 '11 at 16:53
  • Perhaps most of the comments are because an image file, or picture, is being fed to the compilers. Compiler's don't like pictures, they prefer text in a file created by an editor or saved as text from a word processor. – Thomas Matthews Apr 01 '11 at 17:05
  • It really wasn't all *that* funny. – Beta Apr 01 '11 at 17:19

1 Answers1

3

Instead of feeding the program to the compiler as text, he used a bitmap (PNG, if memory serves) file containing a picture of hand written code. Nothing more (or less) than that...

Jerry Coffin
  • 476,176
  • 80
  • 629
  • 1,111