c++ code examples

Started by
16 comments, last by Paradigm Shifter 10 years, 11 months ago

Can you link me to a good C++ tutorial then?

Advertisement

LearnCpp.com is pretty good.

- Jason Astle-Adams

LearnCpp.com is pretty good.

How far would those tutorials take you?


LearnCpp.com is pretty good.


How far would those tutorials take you?

Just looking at the contents and not the material inside each tutorial it looks like they'd teach a lot and covers a lot of material. I didn't look to see how in depth they were but considering who linked them I would trust they are good.. Though of course just learning from tutorials won't be enough. Actually applying these concepts in code is what takes you far. By doing this you see what can and can not be done and then you go and research how it can be done. Then you apply that. Keep doing that and next you know you'll find yourself programming in C++ no problem.

Though keeping a good book on C++ is still important in my opinion even just for reference or maybe learning the Standard Library.


LearnCpp.com is pretty good.


How far would those tutorials take you?

Just looking at the contents and not the material inside each tutorial it looks like they'd teach a lot and covers a lot of material. I didn't look to see how in depth they were but considering who linked them I would trust they are good.. Though of course just learning from tutorials won't be enough. Actually applying these concepts in code is what takes you far. By doing this you see what can and can not be done and then you go and research how it can be done. Then you apply that. Keep doing that and next you know you'll find yourself programming in C++ no problem.

Though keeping a good book on C++ is still important in my opinion even just for reference or maybe learning the Standard Library.

As for books, I have Accelerated C++ and Programming Principles and Practice Using C++, are there any other books I should look into?

I just want to make this transition as fast as possible so I can get back into writing games like I was in Java.

As for practice: http://projecteuler.net/

Do some of those, even if it is just the beginning ones. It gives you projects to work on as you are learning. Have a new feature you just learned? Try to use it to solve one of the problems. Your program may not be the most direct way to solve the problem, but it gives you something to work on and you can use the direct way to verify your answers.

As for practice: http://projecteuler.net/

Do some of those, even if it is just the beginning ones. It gives you projects to work on as you are learning. Have a new feature you just learned? Try to use it to solve one of the problems. Your program may not be the most direct way to solve the problem, but it gives you something to work on and you can use the direct way to verify your answers.

Amazing, I totally forgot about these. Haven't really looked at them since I first started programming. Going to give these a whirl for sure, hopefully I can get a good amount of them done. As for books though, what would you suggest? I was considering the following books to aid my learning:

The C++ Programming Language

The C++ standard Library

Which one of these would better suit my needs?

The C++ programming language (the Bjarne one) is pretty heavy going, I wouldn't recommend it for learning, but it is a good reference. Dunno if the C++11 update is out yet, I'd hold out for that if it hasn't. But as I said, not a good book for learning (reads more like a university textbook).

The standard library one is probably going to be better for learning.

"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley

This topic is closed to new replies.

Advertisement