English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I know the basic syntax and programming in C.
But,I dont know much about structures, pointers and memory management.
Now, I am in a position to learn C++.
Do I have to learn C very well, before starting C++ ?
And Which is the best book to start with C++?

devi

2006-11-02 14:56:49 · 8 answers · asked by devi s 1 in Computers & Internet Programming & Design

8 answers

I found that it was a handicap to learn C before C++, because they operate along different paradigms...

C = functional
C++ = object oriented

The reason that learning C first is a handicap, is that C++ compilers will let you write non-object-oriented code (eg C code) and you end up not learning, or getting the benefit of, object-oriented code :-)

Knowing about pointers, structures and memory management is very useful :-)

2006-11-02 15:19:10 · answer #1 · answered by Extemporaneous 3 · 0 0

In my opinion, you are in the perfect position to start learning C++.

The basic syntax for C and C++ is pretty much the same, but the techniques used to handle structures and memory management are very different. I think you may even find it easier to understand C++ data structures without having learned them in C, but I am certain there are plenty of peoprl who would argue that point with me.

2006-11-02 15:33:58 · answer #2 · answered by Tim N 5 · 0 0

The C++ language is a superset of C so as which potential at an analogous time as you learn C++ you're in all probability going to soak up a great style of the c software language and no, you do no longer desire any C with the intention to learn C++. EDIT: With an information of C++, then Java and C# will by no potential be all that complicated to learn, so sure you could improve to different languages.

2016-10-03 05:44:37 · answer #3 · answered by bugenhagen 4 · 0 0

C++ is a superset of C, it introduces additional capabilities and changes the syntax slightly.

Go for the C++, but check the pre requisites of the course.

Don't buy The C++ Programming Language by Stroustrup, he may have designed the language but the book is a reference and not a learning book.

2006-11-02 15:38:54 · answer #4 · answered by Chris H 6 · 0 0

You an learn them both at the same time if you wish.. just keep track of the differences between their structures and the syntax of some of their commands.

2006-11-02 14:59:59 · answer #5 · answered by ♥Tom♥ 6 · 0 0

No, some people just start with C++. C is just a prievious version of C++ (ex. Windows 95 vs Windows XP).

This is my fav C++ starter book - Good luck !:
http://www.amazon.com/C%2B%2B-How-Program-5th/dp/0131857576/sr=8-4/qid=1162526345/ref=pd_bbs_sr_4/104-1725129-9775911?ie=UTF8&s=books

2006-11-02 15:01:46 · answer #6 · answered by george g 5 · 0 0

you dont need to know one to learn the other. Learn c or c++ visually is a great book to start with.

2006-11-02 14:59:37 · answer #7 · answered by mystykal s 2 · 0 0

in real life you want to work with comps u have to learn all the basics i would start with c

2006-11-02 15:05:07 · answer #8 · answered by Anonymous · 0 1

fedest.com, questions and answers