Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C to C++ : Transitioning from one language to the other [duplicate]

Possible Duplicate:
C++ tutorial for experienced C programmer.

I program in a number of languages frequently and have been using C++ lately. Basically my classes are just wrappers around pure C code. Almost like a struct with associated methods. This gives me the encapsulation and privacy that I want for my data. I have a small hierarchy of classes and am just barely using inheritance.

I am familiar with OO concepts and know what search terms to use when i need to find out about a particular concept in this regard. However, as I have discovered in my foray in the programming world, often the language features that are really helpful are hidden to the newcomer or novice, and the useful bits that I need have already been written and are in a library somewhere that is freely available (most times part of the framework - like in .NET).

What path would you suggest to gain this vital knowledge in C++ and stop myself reinventing the wheel (poorly).

like image 406
Aran Mulholland Avatar asked Jan 24 '11 02:01

Aran Mulholland


1 Answers

This is the wrong way to use C++. You would be better served grabbing a copy of Accelerated C++ and reading it. Yes, it's a beginner book but unless you want to continue treating C++ as just C with objects then you need to focus on how C++ programmers do things instead of just sticking with what you already know. You need to start from the beginning and build a good foundation in C++.

like image 179
Edward Strange Avatar answered Oct 04 '22 03:10

Edward Strange