I want to do some programming exercises because it's easier to learn if you're programming than reading.
I want to do some programming exercises because it's easier to learn if you're programming than reading.
Search "programming contests". There are many sites which have long lists of problems, and some have an online judge to test your results.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
http://www.topcoder.com/tc
My personal favorite. On the right menu, click "Algorithm" and in the submenu "Launch Arena" which will either download (or possibly launch in the browser) a java applet that will connect you to the Top Coder Arena. You'll have to create an account (which is free) and it will give you access to hundreds of programming problems that you can write in a selection of a few languages including C++, Java, and C#. The difficulties range from very easy to well... let's just say some of them are out of my league.
Sent from my iPad®
Dude, the problems there are too hard for me. I'm just beginning to learn C.
btw is C# the same as C?
No, they are different programming languages (and as you can see, we have different forums for them).btw is C# the same as C?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
http://cemc.math.uwaterloo.ca/contes..._contests.html
Scroll down the Canadian Computing Contest, and download some of the PDF's. (The ones from 2004-2008 are the best.)
There are some easy questions that you should be able to answer, even if you are a beginner.
The 2008 one is especially easy. I did it (the real thing) and got 60/75, forgetting to do something simple for problem #4... But I solved problem #5 (O(logn) solution, too), and I wasn't able to solve almost if not all of the earlier problem #5's (they are wickedly hard).Scroll down the Canadian Computing Contest, and download some of the PDF's. (The ones from 2004-2008 are the best.)
There are some easy questions that you should be able to answer, even if you are a beginner.