Skip to content
Scan a barcode
Scan
Paperback C+c++: Programming with Objects in C and C++ Book

ISBN: 0070296626

ISBN13: 9780070296626

C+c++: Programming with Objects in C and C++

Select Format

Select Condition ThriftBooks Help Icon

Recommended

Format: Paperback

Condition: Good

$21.39
Save $8.56!
List Price $29.95
Only 6 Left

Book Overview

This book provides instruction for using C in an object-oriented fashion. The book covers the problems likely to arise in a C++ application, explains why C++ is inappropriate for some object-oriented... This description may be from another edition of this product.

Customer Reviews

4 ratings

Another Holub Masterpiece

Well, I see that all the other reviews were written in 2000 or before. Maybe no one will read this, but I'll do it anyway. I was one of Allen's students back in the 90's, and I have already reviewed one of his classroom texts, "The C Companion" (which see). That review details what it was like to be in one of Allen's classes, so I'll omit that here. This was another classroom text, and again there are no frills, no cutesy pictures, etc. -- just good solid instruction. When he says he is going to teach you object-oriented C, he means it. To that end, his first chapter is worth the price of the book alone. You really learn object orientation from that chapter and you come out with a true polymorphic linked list implementation. Other reviewers have covered the C++ details of the book quite well. In the class in which this book was actually used, we first had to write an object-oriented threaded binary tree class -- in C. This was quite a daunting task. Not only did we have to use all the techniques of object orientation in doing it, we also had to learn what a threaded binary tree was and how to implement it. Basically, a threaded binary tree uses "threads" (bitfields embedded within a node) to point back to parent nodes, so therefore does not need stacks or recursion. Along the way we had to learn how to use a finite state machine to implement postorder traversal. With all that, I learned something that seems to otherwise be known only to computer science professors: how to write true object oriented programs in C. Once we got done with that came the C++. The amazing thing was that now that you had a correct object-oriented class in C, it translated almost immediately and directly into C++, class structure and all -- and you got to see just how much it helps to have a language specifically geared toward object orientation (in the C version of our tree, we had to create our own malloc-like implementation in order the achieve the polymorphism -- C++ does this for you). It is unfortunate that Allen did not write that into the book (I guess he needed it for the classroom), but still, if you read the book with these comments in mind, you should see those techinques from his C and C++ linked list implementations if memory serves me correctly. It would be wonderful to see an update to this book. It is woefully out of date. Templates were just coming into being, and Borland "kind of" had a version thereof, and Microsoft had even less than that -- it was a kludge that mimicked templates. Maybe it's a good thing. If they had been around then, maybe he wouldn't have taught us how how to look under the hood the way this book does. And really, the things Allen does teach here are timeless anyway. One other thing: the book has a ton of typos. But they are not of the sort that impede the learning, they just test whether you are paying attention. This is one of the few books with that many typos that I would give five stars to. But for a

The best C and C++ book ever.

Unfortunately this book is out-of-print. I bought it about 10 years ago, as a beginner C programmer with an idea, let's study some code and start programming in C. Ooops. I couldn't understand a single line of code. But, a year later, after gaining some experience, I tried again and I improoved my programming style in few months dramatically, reading only the first, C-chapter. This is definitely not a begginers book. Author is not wasting paper and your time rewriting online help. Each chapter starts with very brief introduction of the topic. Immediately Holub starts explaining problematic stuff of the language. He points out very tricky pointer problems, he explains compiler implementation details, and sometimes he discusses with C++ authors about weak points of the language. He explains not only HOW to overload an operator, he explains also WHY to overload, and why NOT to overload. Topics are: differecnes from c, classes, operator overloading, derivation, polymorphism and virtual functions, error handling. At the end of the book he develops a real and usable linked-list class. Recently as I started to programm in C++, I returned to Holub's book. This book and online help, it's all I need. To sumarize, this book is not for everyone, it's not a reference book, but it will appreciate your time jumping immediately into some aspects of a language somebody will maybe never think of. Holub, give us more books like this one.

Excellent book for C programers wanting to learn C++

This was an extremely valuable book for me in learning C++. It will be very helpful for any proficient C programmer in making the transition to object-oriented programming in C++. The book is well written and well organized. Starting with a demonstration of how object-oriented programming can be done in C, Holub brings the reader though the transition to C++ very directly and neatly. The examples he uses are excellent, not the trivial ones you find in many "learning C++" books. The book also effectively teaches good C++ programming practice while you are learning. This is very important since sloppy coding practices can be very hard and painful to unlearn later. The book repays carful study and is well worth the money and time spent.I do have 3 criticisms of the book: 1) It's out of date. A 2nd edition that brings it up-to-date with Standard C++ would make this the best book of its kind. For the C++ beginner, though, that doesn't detract much from the book's usefullness. Everything in the book will still work. 2) There are numerous typos and minor errors in the example code which can lead to confusion. Being able to find them though, made me feel good. I knew I was really learning the subject. 3) The book would also benefit by having useful exercises at the end of each chapter for a student to perform.

A book that clears up a lot C++ syntax

This book covers details and insight information for a C or C++ programer to much better know C++. Except for chapter one- Object-Oriented Programming in C- I found most chapters are so valuable that you want to read over and over until you fully understand the points that you never think of before. At last, you'll be confident saying you've made a big step in knowing C++ in a systematic way
Copyright © 2024 Thriftbooks.com Terms of Use | Privacy Policy | Do Not Sell/Share My Personal Information | Cookie Policy | Cookie Preferences | Accessibility Statement
ThriftBooks® and the ThriftBooks® logo are registered trademarks of Thrift Books Global, LLC
GoDaddy Verified and Secured