How should I learn C++?

Started by
5 comments, last by novice_programmer 21 years, 2 months ago
I was thinking about learning programming and I decided that I would learn C++. Should I learn C before I learn C++? What is the best online tutorial for C/C++?
Advertisement
There is no reason to learn C before learning C++. C++ is mostly a superset of C; that is, almost all C code is also valid C++ code. Certain new features of C++ will make learning the language much easier for a beginner (for example, vastly superior string handling in all aspects but possibly efficiency), so I suggest you start off by studying C++, learning the low-level, more C-like features as you go along.

I cannot tell you what the best online tutorial is. One that looks good at a glance is found here, but it''s certainly not perfect (for example, they seem to use old C-style string handling, which is arduous and complex). I''ll leave it unto others, more knowledgeable in the matter, to recommend a more modern learning source, if such are available.
Thanks!! :-D
If you have a local barnes and nobles near by. Go check out thier c++ books, and just skim them and see which one seems the least complex. My 1st book was c++ for dummies, and I follwed it with no problem. The important thing is that you are able to understand what they are doing, and books that use lots of explained examples are good.
"Essential C++"
"Accelerated C++"
"The C++ Programming Language" (also in paperback)
"The C++ Standard Library, A Tutorial and Reference"

Check the link in my sig for more.
[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]

[edited by - Fruny on February 12, 2003 6:02:22 AM]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
The best books about C++ are, I think, "Teach yourself C++" (NTC PUblishing Group) and "C++ from the ground up" (by Herbert Schildt)

quote:Original post by Ulbian
..."C++ from the ground up" (by Herbert Schildt)

Ever heard the expression bullschildt? It exists for a reason. The argument is that Schildt teaches language features in the complete absense of context and technique, resulting in people who only understand concepts like inheritance and ploymorphism but really don''t know when and how to use them in situations any more complex than Schildt''s "A Cat ISA Mammal"-type scenarios.

Go with the books Fruny suggested. They may be tough reading, but you''ll learn more, better, in the end.

Also, if you aren''t familiar with programming and programming concepts, I suggest you first learn a language that has a gentle learning curve and low overhead (such as Python) before tackling C++. You may find that it''s not even necessary to learn C++, though it''s certainly worthwhile.

This topic is closed to new replies.

Advertisement