Mantorok wrote:
Hi all
I'm looking to learn C and/or C++ and I was wondering if there were any good
on-line resources and books.
I am currently a C# developer but I'm keen to discover C/C++ as I feel it
would be a benficial experience.
Firstly... pick a language, if you want to program on platforms for which there is a C++ compiler readily available, I would recommend C++ over C it in most cases.
Right. Now we have that sorted.
Get "Accelerated C++" by Koenig and Moo. Just do it, don't ask any questions. It teaches you how to program C++, it doesn't teach you C, you will not need C, it will get you
writing useful, productive and safe C++ programs quickly. What it teaches you to do may not be groundbreaking for you, but the way it teaches to solve the problem is fundamental.
If you start learning C first, you will undermine the principles of safe C++ coding. Yes, it will teach you the low-level intricacies of things, and how you do things "the hard
way", but if you want to learn C++, learn C++.
You'll be more productive because:
a) You won't have to read a single C book, saving lots of time.
b) You won't have to learn how to do the same things the C++ way afterwards.
c) You won't have to unlearn all the things that will get you into trouble.
The standard library for C++ can much of the C stuff in a much safer way.
Other books that are useful:
"The C++ Programming Language" by Bjarne Stroustrup.
"Effective C++" by Scott Meyers (How to write Classes properly)
"Effective STL" by Scott Meyers (How to use the STL properly)
"Modern C++ Design" by Andrei Alexandrescu (Agreat example of Generic programming with Templates, but quite heavy).
I also have:
"Design Patterns" by Gang of Four. This is a more abstract look at how to solve common problems in OO programming, examples in C++.
Hmm, I think thats all of the books I have, and they're all great; in terms of content and writing style.
Ben
--
I'm not just a number. To many, I'm known as a String...