Outpost Universe Forums

Off Topic => Computers & Programming General => Topic started by: Hooman on January 03, 2019, 12:11:46 PM

Title: Painfully Funny
Post by: Hooman on January 03, 2019, 12:11:46 PM
I just came across this little gem on Stack Overflow:
Why is this program erroneously rejected by three C++ compilers? (https://stackoverflow.com/questions/5508110/why-is-this-program-erroneously-rejected-by-three-c-compilers?rq=1)

Checking the revision history, I found it was originally posted on April 1, 2011.
Title: Re: Painfully Funny
Post by: lordpalandus on January 06, 2019, 02:16:22 PM
I didn't know that a .png file was an actually legitimate source file for compilation in C++.
Title: Re: Painfully Funny
Post by: leeor_net on January 06, 2019, 02:50:43 PM
Depends on the compiler.
Title: Re: Painfully Funny
Post by: Hooman on January 07, 2019, 02:13:09 AM
You know, technically there's nothing in the standard against supporting PNG files, and using OCR on them. ;)
Title: Re: Painfully Funny
Post by: leeor_net on January 07, 2019, 07:05:08 PM
That's my point... and I believe the point brought up in the linked thread. :)