C++ book recommendations? bueller? bueller?

DWW

Platinum Member
Apr 4, 2003
2,030
0
0
Hey and good evening,

Can anyone recommend a great C++ book for me. I'd consider myself an advanced to intermediate C programmer wanting to upgrade to C++. I've a basic OOP knowledge about encapsulation (classes), polymorphism (overloading functions, operators etc...hear you can overload classes but I've no clue as I'm not that knowledgable here), and inheritance (I know base->derived classes, virtual functions and that).

I want something that basically covers most major details of C++. I can review stuff I already know, I'm not impatient so it can be any book... I just dont want a "learn in 24 minutes" type book please. :)

I've heard The C++ Programming Language, unlike K&R, is a very bad book by some people's opinion. Just, whichever C++ book you could have if you were stranded on a desert island :)

PS is Design Patterns by Gamma et al worth the buy?

Thanks a million.
 

ProviaFan

Lifer
Mar 17, 2001
14,993
1
0
I've found C++ How To Program, 4th Ed. by Deitel and Deitel to be a very good book. It's not a dumbed down "Teach yourself something in 24 hours" quick howto.

My previous experience is with Visual Basic (pre-.NET), so I have some knowledge of basic programming concepts, but not of OO techniques. For me, the book is very easy to follow, and I'm finding it very much worth what I paid for it. However, for you, it might be a lot of simple review and very little useful information, since you already (seemingly) know a lot about OO in general. I really can't say for sure one way or the other, however, because I just got it (relatively) recently, and am only on Chapter 3 (Functions).

You might check to see if your library has it (or can borrow it from another library for you - at my local library, that service is free, but some charge a very small fee for it), so you can flip through it to see if it's something you're interested in before commiting US$80 or so on it.
 

BFG10K

Lifer
Aug 14, 2000
22,709
3,004
126
The book I used at Uni was the red Deitel & Deitel one (second or third edition I think) and that was pretty good. I've seen newer versions as well.
 

Pandaren

Golden Member
Sep 13, 2003
1,029
0
0
I've found that good C++ tutorials and resources can be found on the websites of computer science departments of many universities.
 

AlexWade

Member
Sep 27, 2003
89
0
0
I learned under a textbook called "Problem Solving With C++ : The Object of Programming" by Walter Savitch. It is a very good book and a good reference and is not like most textbooks I've seen. It provides good reference. Of course, I was taught in a classroom.

Have you considered jumping into Java? I don't mean JavaScript or Java Applets. You seem to know the basic of OO. The beauty of Java is it is entirely OO and universal. And, chances are, someone has already created an object to do what you want. There are a few things you cannot do in Java, though. You can only have single inheritence in Java. You have no control over pointers (that is both good and bad). You cannot overload operators. I like Java the syntax is so much like C++ and I find it easier than Java once you have OO nailed.

By the way, I was always told you should not mix IO Streams and Standard Output (cout and printf). Has anyone ever experienced a problem mixing the two, because I never have.