Author Topic: Painfully Funny  (Read 129 times)

Offline Hooman

  • Administrator
  • Hero Member
  • *****
  • Posts: 4621
Painfully Funny
« on: January 03, 2019, 11:11:46 AM »
I just came across this little gem on Stack Overflow:
Why is this program erroneously rejected by three C++ compilers?

Checking the revision history, I found it was originally posted on April 1, 2011.

Offline lordpalandus

  • Hero Member
  • *****
  • Posts: 723
Re: Painfully Funny
« Reply #1 on: January 06, 2019, 01:16:22 PM »
I didn't know that a .png file was an actually legitimate source file for compilation in C++.
Currently working on Cataclysm of Chaos, Remade.
Link to OPU page = http://forum.outpost2.net/index.php/topic,6073.0.html

Offline leeor_net

  • Administrator
  • Hero Member
  • *****
  • Posts: 2072
    • LairWorks Entertainment
Re: Painfully Funny
« Reply #2 on: January 06, 2019, 01:50:43 PM »
Depends on the compiler.
- Leeor
LairWorks Entertainment

Titanum UFO's

Offline Hooman

  • Administrator
  • Hero Member
  • *****
  • Posts: 4621
Re: Painfully Funny
« Reply #3 on: January 07, 2019, 01:13:09 AM »
You know, technically there's nothing in the standard against supporting PNG files, and using OCR on them. ;)

Offline leeor_net

  • Administrator
  • Hero Member
  • *****
  • Posts: 2072
    • LairWorks Entertainment
Re: Painfully Funny
« Reply #4 on: January 07, 2019, 06:05:08 PM »
That's my point... and I believe the point brought up in the linked thread. :)
- Leeor
LairWorks Entertainment

Titanum UFO's