tags:

views:

137

answers:

2

Hey everyone,

I'm going to my second year of Computer Science at a local University, in which C++ is a large part of the education, but as they only give an introductory course in the first year (basics, pointers, creating a linked list and an implementation of a game like Mastermind), I'd like to program a bit in my free time to crank up my knowledge about the language.

Is there a site that shows little problems or projects to make, to crank up my knowledge? As reading in "The C++ programming language", or saying "I'm going to crank up my knowledge about x" isn't quite as handy to learn from, compared to saying "I'm going to create a mastermind game", which can be extended quite far, and those are the kind of projects that they give in School classes that are excellent to master the language from.

So in short: Are there any sites which offer little problems and projects like this?

Thanks!

+6  A: 

A really good resource is http://projecteuler.net/index.php?section=problems, it builds both programming language familiarity and your list of programming algorithms (not to mention keeping your math skills sharp).

However I wouldn't worry too much about it, universities have this weird Java and Matlab fetish, I don't think I had a single C++ class in 4 years. My suggestion to you is to focus on algorithms more than the actual language. All you need for university is recursion and loops, and all languages have those.

Blindy
But if you plan on getting a job - learn C++. Learn it hard. In most jobs you're surrounded by Java people. This means that you're looked down upon for most of what you do but then something real breaks and it's up to you to fix it. I work in room filled with double and triple majors from MIT(/Stanford/etc) who are unaware of what pointers do.
SubSevn
+1 for "universities have this weird Java and Matlab fetish"
Mark
I wont get Java untill my third year, if even ;) All my programming courses will be C++ next year, so it's quite a help to train it a bit :) Thanks for the site! I see quite some nice little projects to train my general knowledge!
Licargon
I'd add that if you want to use project euler to learn C++, make sure that in writing your code, you make *everything* a template. This is (a) so that if you realise the answer won't fit in an `int`, you change one template parameter in `main` from `int` to `mpz_class` and go again, but more importantly (b) so that you get a proper idea of what generic programming is actually all about. I'm not saying all C++ code must be generic and template-y, just that you won't really get it unless you focus. The Church-Turing thesis means that you could put off learning it until tomorrow, but don't ;-)
Steve Jessop
A: 

in my uni we started with C, then moved to C++ (first year). Then did Java and C++ OO programming (second year). Then did recursive programming (OCaml) and Formal Languages and Compilers course were we extended a mini Pascal language adding pointers, structs and references by writing and interpreter. Was good fun!

Then I did an 2 years MSc in Bioinformatics and lost my skills and failed a few interviews. Now I am back on fit and I am working daily with C++.. hate my collegues when they think that they are clever when speaking about pointers and references.. so stupid! At the very end are just very very basics concepts.

Java programming sometimes is difficult as involves complex design patters and web services interaction. C++ on the other hand is "difficult" for memory allocation etc..

learn Objective-C and use C++ in your Mac/iPhone application instead.. make some money and experience writine iPhone apps during ur free time.. the standford uni videos on iTunes are very easy to follow!