Hey all…
I ran across this fun C++ problem in a forum and thought it worth sharing. It was quite embarrasing trying to figure out the answer. My mind hasn’t had to think like that in such a long time.
Here’s the problem:
eh… ok, so I can’t paste the code here or else it messes up the browser… click the link below to get the source file… sorry :-(
Click here to download the source file straight to your box.
Best of luck! Hopefully you do better than I did!
If you get it, let me know! don’t post the answer though, let’s give some time for those (like me) who may not get it all too fast.