I'm thinking about learning C++.... should I learn C first?
By AlejoLuc
@AlejoLuc (7)
Argentina
March 2, 2009 5:47pm CST
I guess the title of the discussion says it all. I'm really interested in the C++ language, but I've heard that it's easier if you take a look at C first. What should I do?
6 responses
@elasolova (144)
• Turkey
12 Mar 09
C is the core of C++. Thus, if you learn C first you will have more power on C++. Personally, I learned Java initially and I think that I made the right choice. Java is more programmer-friendly. There are no pointers such as in C/C++ which are really hard to learn. I advice you to learn Java first.
@elasolova (144)
• Turkey
12 Mar 09
Thanks for your advice, but I am planning to postpone pointers as mush as I can
@omairabdullah (21)
• India
4 Mar 09
I would recommend that you definitely learn C first for a little while till you are familiar enough to write simple programs in it and know about things like structures and pointers etc. Then start reading about C++. Though most introductory books on C++ have this in the first few chapters.
@andyboy (1)
•
3 Mar 09
It may be a little easier yes, but since it's a different language your going to be putting in twice as much work.
Start with a real simple tutorial on C++ and work your way through at your own pace. I did a little research for you and it would seem this is a really good beginners C++ Tutorial : http://www.computer-training-software.com/fun-cplusplus.htm . Hope that helps you to get started.
@screamkevin (82)
• Philippines
10 Mar 09
Yes its easier to learn C++ if already learned C..
many language here at http://www.planetsourcecode.com
@faisai (1138)
• Hong Kong
15 May 09
I am no master in both languages so you may not want to take my suggestions seriously.
From my understanding, C++ and C are 2 languages that are very much alike but are fundamentally different. What I mean is that their syntax is very similar (flow controls, logics, data types, etc.). However, the coding model is very different. With C++, you code OOP... Or you aim for OOP when you are coding. In this case you focus on the objects and their responsibilities.
With C, it is more function based. Write some function that works what you want it to do.
So, if your ultimate goal is to learn C++, I would say just head for it.