PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Good C++ Books to learn with

ChiefStinkyNutz · 27 May 2002, 21:34 UTC
I made it about one third of the way thru "Teach Yourself C++ in 21 Days". I ended up giving the book to a friend who was struggling thru a C++ class... thinking "oh I'll buy the new edition". Well now I'm shopping for the new edition and it doesn't have the greatest reviews. Another book, by the same author (Jesse Liberty), called "Teach Yourself C++ for LINUX in 21 Days " gets good reviews. I am tempted to purchase this one.

I have also attempted to read "C++ How to Program" by Deitel and Deitel. I find this book hard to read.

The other book I am considering is "Thinking in C++" by Bruce Eckel. This book has good reviews. I've read part of it and the author seems to go on and on about theory causing me to lose attention/instrest.

The thing I like about Liberty's book is that it is to the point. He gives an example and breaks it down right after. I think "Thinking in C++" might be a good second book.

My ultimate goal is to learn to program using C++ for PPC, Windows and Linux.

Any recomendations?

Thanks,
-ChiefStinkyNutz
Don't waste your money on "21 days" books... They are all crap.

If you know C (and even if you don't know it that much), get Accelerated C++ by Koenig & Moo:

http://www.acceleratedcpp.com/

Also:

http://www.jks.is.tsukuba.ac.jp/~rawita ... l_cpp.html


Deitel & Deitel is the next best book I think, but still with a "C with classes" mentality problem. I learned with Deitel & Deitel, but I wish Accelerated C++ was available at that time.
Thinking in C++ is available for FREE download as a PDF. Sure, he gets wrapped up on theory a little, but you really should know the theory to program well.

Something you also need to be aware of is that programming C++ for Linux is very different to using Visual C++ in a windows environment - sure the base *language* is the same, but if you want to use MFC/VC++ then you should buy a C++ book that's oriented towards that.

Cheers,

Refractor
refractor wrote:
Something you also need to be aware of is that programming C++ for Linux is very different to using Visual C++ in a windows environment - sure the base *language* is the same, but if you want to use MFC/VC++ then you should buy a C++ book that's oriented towards that.


I dunno, I learnt C (and C++) on Linux, and while there is a learning curve towards understanding MFC, it's a lot easier when you understand the basics of the language.

I don't think it's a bad idea to learn standard C++ and then work onwards (the only problem being the pretty awful compliance of VC++ with the standard) - MFC does make sense in the end - it's just an API.
Sure; I didn't mean to imply that the "learning generic C++" stage could/should be bypassed. Learning the base language/theory before jumping into programming is always to be advised.
Or you could do like me. Write Weeboo as a learning experience. Had no idea how to program in C++...I almost had half of the original JScript code porte before I really understood what a pointer was ;)

Oh, well...I'm a fast learner and I've been doing other program languages before so really, my path might not be the optimal for everyone...
refractor wrote:
Sure; I didn't mean to imply that the "learning generic C++" stage could/should be bypassed. Learning the base language/theory before jumping into programming is always to be advised.


Oh quite, I know what you mean, but I've got a book that's very Microsofty orientated - and I found it actually easier when I was learning it to fully understand the theory and work on platform agnostic code and then learning MFC. The hardest thing I found about MFC when I learnt it was the weirdities of the Win32 API.
BurningSheep · 28 May 2002, 23:57 UTC
Malmer wrote:
Oh, well...I'm a fast learner and I've been doing other program languages before so really, my path might not be the optimal for everyone...


...and certainly not recommended :o
ChiefStinkyNutz · 29 May 2002, 04:35 UTC
Thanks for the input everyone. :)

After reading the first chapter at Borders, I picked up Accelerated C++ today. I think it might be exactly what I was looking for. It gets right down to the nitty-gritty!

Thanks Kzinti!

-ChiefStinkyNutz
Way to go pal... It's an excellent book! Glad I could help you.
I've never read a programming book in my life...ok well some old basic books back in the days but that's all...I am a reference guy...learn everything by trail and error...mostly error though ;)
Which could explain some silly questions I have in this forum from time to time...cause even though I am a good programmer I don't always know all the theory... ;)