views:

137

answers:

3

I'm just starting to learn C++, and I was wondering if anyone could suggest a few small projects that I could work on that'll help me learn more about what I'm doing.

So far the most complex thing I've written is a program that runs when I first log in to my computer (yay auto-run) and writes the date/time to a .txt file. So I'm looking to move a step up from that. :-p.

+1  A: 

Take a look at codekata, I haven't tried it myself but I've heard great things, and it looks like a great way to improve your programming skills.

Brian R. Bondy
have a look at http://projecteuler.net, which is keeping score, might be fun.
roe
http://programmingpraxis.com/ is another one.
roe
+2  A: 

What will hold your interest so you're motivated to keep working, even when it sucks, is going to depend on you. What will help you get to where you want to go will, again, depend on you. Sorry, we just can't answer this one for you. The best advice I can give you here is practice, do things you find interesting and/or useful, practice some more, and did I mention practice?

That said, if you want to test your knowledge of syntax (which is something you just have to learn in any language), try the exercises in your C++ books. (Or visit a book store for a few hours and pick out some that look like they will help you.) Those exercises are designed to teach the very basics such as syntax, and answers are often provided. Hang around on SO and answer some questions too. :)

Roger Pate
+6  A: 

Games, write simple games.
Start with very simple ones, like tic-tac-toe, hang man, graduating up to more complex interactive games like snake, or battleship.

Even with something simple like a snake game, once you've the initial game together, you can add extra computer controlled snakes, add boundaries, add moving boundaries etc etc.

Games are an excellent option, you don't need to learn specific technologies, you don't need advanced physics engines, you don't need to learn the ins and outs of an obscure business domain.

Writing simple games are an excellent method to exercise problem solving and practise writing code.

Just to state again, incase there's any confusion, I'd recomment writing games :)

Binary Worrier
I guess I'll do some of that. Sounds like fun, at least. Thanks.
Andrew
Glad to be of help. 27 years ago (when I was 12) I was given an Oric-1 computer, there were no games available, but it came with a manual on writing basic. So my brother and I wrote our own games . . . and here I am now many years later:)
Binary Worrier