Sign in to follow this  
GraySnakeGenocide

Anyone know of a good "practice" resource in terms of C++?

Recommended Posts

What I mean is, something that gives you exercises to practice specific aspects of a language? IE focusing on pointers, focusing on classes, focusing on polymorphism, etc? I have a million good resources to learn the stuff, I just have no idea how to practice using the stuff I'm learning in a sense.

Share this post


Link to post
Share on other sites

You could always just focus on a small mini project like a calculator or something and whenever you are unsure about something read up on it, eventually you will spend more time doing and less time reading. Obviously you will want you mini project to contain all the areas you want to improve in.

 

I am not familiar with any exercise sites, but from the ones that I have seen in books, I would say you will probably learn more if you set the goals yourself within one project and expand on it.

Share this post


Link to post
Share on other sites

for general programming tricks and practice Alpha_ProgDes has provided an awesome list.

 

if you are looking for practice with things like polymorphism and such things, here's a suggestion:

 

if you haven't already, pick up a book on Design Patterns. Most of these books provide sample programs and examples for each of the major design patterns. In my opinion, if you are comfortable with C++ syntax and mostly want to challenge yourself with classes, polymorphism, etc., then it might be easier to pick a Java-based Design Pattern book and simply do the examples in C++. This is a matter of comfort, and remember that you won't get the more C++-only stuff out of such a case (such as static polymorphism)

 

go through the design patterns and you will generally understand how C++ deals with pointers, classes, polymorphism, etc. It will also build your confidence up.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this