Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   C and C++ challenges (http://www.go4expert.com/forums/c-cpp-challenges-t17597/)

jaaam 19May2009 01:47

C and C++ challenges

I found the c and c++ challenges in <<Snip>> are good. try it


SaswatPadhi 19May2009 06:43

Re: C and C++ challenges
This is not the right place to post this thread : should be in Chit-Chat.

About the challenges, I didn't find them really hard/interesting, good for a high-school student probably.

I my-self solve programs from http://uva.onlinejudge.org/, btw.
That's a really really good site which will improve both programming and mathematics skills.

shabbir 19May2009 08:34

Re: C and C++ challenges
No Self promotion

xpi0t0s 19May2009 18:58

Re: C and C++ challenges
The "challenges" at [snip] are not that good, the site just posts obfuscated code and bad C grammar and asks if you can work out what it does. Much better are the challenges at http://www.osix.net; these actually help you learn how to use your tools (the compiler) to solve well designed problems as well as giving you some motivation to complete further challenges.

If you want to have a go at figuring out what obfuscated code does the best place for that is the IOCCC - the International Obfuscated C Code Competition, where all the winning entries from previous years are posted. My favourite is still the one that starts with main(){} then #includes itself 6 lines later (and works!), and there's a brilliant one where the code as is is a sort program, then you compile it and run it against its own source code whereupon it becomes a different program that not only works but actually does something useful (reverses the lines or something), then do it again and it becomes a 3rd useful program. Now THAT my friend is impressive.

All times are GMT +5.5. The time now is 14:27.