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
Do I have to learn C very well, before starting C++ ?
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 :-)
Reply: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.
Reply:in real life you want to work with comps u have to learn all the basics i would start with c
Reply: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.
Reply: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-Progra...
Reply: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.
Reply:you dont need to know one to learn the other. Learn c or c++ visually is a great book to start with.
flowers on line
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment