Welcome, Guest. Please login or register.

Author Topic: C++ programming books  (Read 5813 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline OliverTopic starter

  • Hero Member
  • *****
  • Join Date: Sep 2005
  • Posts: 803
    • Show only replies by Oliver
C++ programming books
« on: November 09, 2008, 02:03:06 PM »
Hi folks,

I have started a new job recently, have found my self needing to learn C++ programming, and am looking for advice on good learning resources.

The sole software developer in my department has just resigned, and I have been asked to take over a section of his job. I have previously done some ANSII C programming, and Java programming in uni, but not for a while, and not really to the extent of a software engineer/programmer. My recent programming experience is more in assembly, and most of my (limited) experience is in hardware.

I will be developing applications and drivers for Windows CE based embedded systems.

My plan is to spend some time learning C++ in a general way, before delving into the application.

I am looking for at least one good printed text, from which to base most of my work, and will of course use online references as well. I think finding good online references should be easy enough, but if anyone could recommend some really good books, that would be much appreciated.

Cheers,

Oli
Good good study, day day up!
 

Offline countzero

  • Hero Member
  • *****
  • Join Date: Mar 2005
  • Posts: 1938
    • Show only replies by countzero
    • http://blog.coze.org
Re: C++ programming books
« Reply #1 on: November 09, 2008, 02:16:15 PM »
well the first book (and probably you don't need another one) that comes to mind is The C++ Programming Language from Bjarne Stroustrup, the guy who made C++.
I believe in mt. Fuji
 

Offline OliverTopic starter

  • Hero Member
  • *****
  • Join Date: Sep 2005
  • Posts: 803
    • Show only replies by Oliver
Re: C++ programming books
« Reply #2 on: November 09, 2008, 02:30:44 PM »
Hi countzero,

Thanks for your reply. I will definitely track that one down. I guess that is to C++ what The C Programming Language, Kernighan & Ritchie is to C.

Cheers mate,

Oli
Good good study, day day up!
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16878
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: C++ programming books
« Reply #3 on: November 09, 2008, 03:28:22 PM »
Another vote for Bjaarne Stroustrup here. It's all you need for the language standard itself.

A book that might be useful for your specific needs is C++ Programming for Technology
int p; // A
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: C++ programming books
« Reply #4 on: November 09, 2008, 03:35:37 PM »
Google: "Thinking in C"

Great book and free too.

Offline OliverTopic starter

  • Hero Member
  • *****
  • Join Date: Sep 2005
  • Posts: 803
    • Show only replies by Oliver
Re: C++ programming books
« Reply #5 on: November 10, 2008, 03:43:57 AM »
Hey, thanks a lot guys.

@Karlos: Your reference looks like it will have qute relavent examples for my use, thanks.

@Bloodline: I have just downloaded a couple of Bruce Eckle's texts, and am reading one over lunch. Cheers!

I'll see if I can pick up some cheap hard copies from Amazon.

Oli
Good good study, day day up!
 

Offline OliverTopic starter

  • Hero Member
  • *****
  • Join Date: Sep 2005
  • Posts: 803
    • Show only replies by Oliver
Re: C++ programming books
« Reply #6 on: November 10, 2008, 02:22:42 PM »
Just in case anyone else is has interest in this material, I have also been recommended to look into Microsoft Press publications, for Windows CE applications.

I am going to sign up for MSDN membership: hopefully some of these publications will be freely available.

Thanks again,

Oliver
Good good study, day day up!
 

Offline Speelgoedmannetje

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 9656
    • Show only replies by Speelgoedmannetje
Re: C++ programming books
« Reply #7 on: November 10, 2008, 06:07:07 PM »
Quote

Oliver wrote:
I am going to sign up for MSDN membership: hopefully some of these publications will be freely available.
Though I've got bad experiences with embedded windows, MSDN is really helpful :-)
And the canary said: \'chirp\'
 

Offline OliverTopic starter

  • Hero Member
  • *****
  • Join Date: Sep 2005
  • Posts: 803
    • Show only replies by Oliver
Re: C++ programming books
« Reply #8 on: November 11, 2008, 02:05:10 AM »
Hi Speelgoedmannetje,

What kind of bad experiences would they be? Have you previously done development for embedded Windows?
Good good study, day day up!
 

Offline Speelgoedmannetje

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 9656
    • Show only replies by Speelgoedmannetje
Re: C++ programming books
« Reply #9 on: November 11, 2008, 11:44:52 AM »
Yeps,
Well, the experiences were the usual: (minor) stability and performance issues, and some parts of the system seemed to be incomplete.
And the canary said: \'chirp\'
 

Offline OliverTopic starter

  • Hero Member
  • *****
  • Join Date: Sep 2005
  • Posts: 803
    • Show only replies by Oliver
Re: C++ programming books
« Reply #10 on: November 11, 2008, 01:47:16 PM »
Hmm, the incompleteness sounds a bit like what my co-worker has just discovered today.

I think this should be an interesting learning experience.
Good good study, day day up!
 

Offline Speelgoedmannetje

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 9656
    • Show only replies by Speelgoedmannetje
Re: C++ programming books
« Reply #11 on: November 11, 2008, 02:18:53 PM »
Quote

Oliver wrote:
Hmm, the incompleteness sounds a bit like what my co-worker has just discovered today.

I think this should be an interesting learning experience.
Well I also discovered some incompleteness also in Java libraries, but less.
I just don't like to work with something shoddy.
Considering embedded applications, I much prefer Linux in combination with C/C++.
And the canary said: \'chirp\'
 

Offline Caius

  • Sr. Member
  • ****
  • Join Date: Nov 2007
  • Posts: 294
    • Show only replies by Caius
Re: C++ programming books
« Reply #12 on: November 17, 2008, 10:40:10 AM »
Like many others in this thread I too recommend Stroustrup's book. However I do not agree that this should be the first book you look into. What this book does is to cover the specifics of C++. I use it when I need details like how types are resolved when instancing template classes and functions, when variables are initialized and not (a rule of thumb in C++ is to always initialize variables), scoping rules, etc. But it's not as useful for how to put everything together in a larger context.

When I started with C++ I used "C++ - How to Program" (Deitel). This book covers most (but not all) aspects of the language, and the exercises are very good. Many books start out with covering C topics, then move on to C++. In my opinion this is not a good idea, because when using C++ you need to change how you think. This book will teach you C++ from the beginning.

C++ is full of pitfalls and weird details. When you want to learn using the language in a more optimal way, I recommend "Effective C++" (Scott Meyers). This book is often referred to as the "first second book you need". Every C++ programmer should have this. It covers common errors when using constructors, resource management, inheritance, templates, and many other things. All topics are very specific, and can be used in your code directly.

At this point you may want to get "Design Patterns - Elements of Reusable Object-Oriented Software" (Gamma, Helm, Johnson, Vlissides). This book is THE classic for design patterns. Whenever you see mention of "Gang of Four" or "GoF", it refers to this book. Also, unlike most other books on the topic, most examples are in C++ (and SmallTalk in a handful of cases).

The STL (Standard Template Library) includes a plethora of useful containers and algorithms. So many in fact, that it's hard to choose the right ones for the problem at hand. Again by Scott Meyers I recommend "Effective STL". It helps you choose the right tools for working on ranges of objects, including searching, sorting, deleting, etc. You'll get a better understanding of how to achieve the optimal blend of speed and error-free operation.

C++ is a big and expressive language. It's unrealistic for any one person to learn everything about it (at least in one lifetime). And while personal experience is the best teacher, the above books will speed up your progress considerably.
Theology is just a debate over who to frame for creating reality.
 

Offline OliverTopic starter

  • Hero Member
  • *****
  • Join Date: Sep 2005
  • Posts: 803
    • Show only replies by Oliver
Re: C++ programming books
« Reply #13 on: November 18, 2008, 03:23:35 PM »
Hi Calus,

Thanks for sharing your input on this; much appreciated.

I noticed those books you mentioned when scouring around for resources, and thought they looked good; it's great to have a user's opinion of them too.

I do like to have a range of texts to draw upon as well.

I will be trying to use most of these books in the near future. Hope I can find some in a library.

Cheers,

Oli
Good good study, day day up!
 

Offline Phantom

  • Hero Member
  • *****
  • Join Date: Feb 2006
  • Posts: 631
    • Show only replies by Phantom
    • http://l9memorial.if-legends.org/html/home.html
Re: C++ programming books
« Reply #14 on: November 26, 2008, 03:15:22 PM »
If you are new I recommend "Learn C++ in 21 days" for a start. Bjarne's book is the last one you have to buy, because it's little hard to read if you don't know the basics.
To Be A True Adventurer, You Ought To Play Real Text Adventures