Hello all:
I have been using C-language fror many years. Now I realized that I have to learn the C++. Many new functions there I can not find in C.
Could you please tell me what the good way is to expand my skill to C++.
Thanks. --Zhao
Printable View
Hello all:
I have been using C-language fror many years. Now I realized that I have to learn the C++. Many new functions there I can not find in C.
Could you please tell me what the good way is to expand my skill to C++.
Thanks. --Zhao
If you have a pretty good grasp of C then you should pick up C++ quite quickly as the syntax of both languages are very similar. C++ offers OOP which is totally new to a C programmer but its not to hard, just an extension to C-style structs with a lot more on top of that.
Best idea is to get a C++ book and learn from that although you can proberly skip the simple basics dependant on your experience. The tutorials on this and other sites may also be of use to you.
Take a look at the cprogramming.com tutorial. A good intermediate C programmer should be able to work-through the tutorial in a few hours. (One weakness of the tutorial is that it covers C-style strings, rather than C++ string objects.) Here's another tutorial. I'm not sure if it covers C++ strings...
The following books make good "2nd" C++ books, and are good for people who already know C:
And, you can take a look at the Recommended Books Thread.Quote:
Originally Posted by DougDbug
Here are a couple of good online C++ language references:
cppreference.com
Dinkumware.com
You can also download the ANSI/ISO Language Standard from ANSI for $30 USD. NOTE - This is a technical specification, not a "handy reference".
I used to use C language for scientific calculation, such as solving differential equations. C++ has another great usage is for windows programming, I don't care for that.
Where can I find a good "C++ tutorial" on the Web that satisfy my purpose and is able to be downloaded. I hope I can read it not from screen.
If a good book also has CD of the excerises, that will be great, too. --Zhao
C++ is not limited to that alone.
If you ask me, C++ is superior to C in every possible way. C can still be used from C++ (and mixed with C++) too.
But as you know, a programming language is not defined from what its used for. C++ can be good for scientific calculation and differential equations, as well, if you just will it.