Trade in Yours
For a £1.83 Gift Card
Trade in
Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Image not available

Tell the Publisher!
I’d like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

C++ How to Program [Paperback]

Paul Deitel
4.0 out of 5 stars  See all reviews (1 customer review)

Available from these sellers.

Trade In this Item for up to £1.83
Trade in C++ How to Program for an Amazon Gift Card of up to £1.83, which you can then spend on millions of items across the site. Trade-in values may vary (terms apply). Learn more
There is a newer edition of this item:
C++ How to Program (early Objects Version) (How to Program (Deitel)) C++ How to Program (early Objects Version) (How to Program (Deitel))
In stock.

Book Description

5 Jan 2005 0131857576 978-0131857575 5

For Introduction to Programming (CS1) and other more intermediate courses covering programming in C++. Also appropriate as a supplement for upper-level courses where the instructor uses a book as a reference for the C++ language.


This best-selling comprehensive text is aimed at readers with little or no programming experience. It teaches programming by presenting the concepts in the context of full working programs. The text has an emphasis on achieving program clarity through structured and object-oriented programming, software reuse and component-oriented software construction. The Fifth Edition reflects the suggested improvements of a distinguished team of industry professionals and academics.

Frequently Bought Together

C++ How to Program + Schaum's Outline of Programming with C++ (Schaum's Outline Series) + C++ Pocket Reference
Buy the selected items together

Product details

  • Paperback: 1536 pages
  • Publisher: Prentice Hall; 5 edition (5 Jan 2005)
  • Language: English
  • ISBN-10: 0131857576
  • ISBN-13: 978-0131857575
  • Product Dimensions: 23.3 x 17.7 x 4.7 cm
  • Average Customer Review: 4.0 out of 5 stars  See all reviews (1 customer review)
  • Amazon Bestsellers Rank: 162,918 in Books (See Top 100 in Books)
  • See Complete Table of Contents

More About the Author

Discover books, learn about writers, and more.

Product Description

About the Author

Dr. Harvey Deitel is one of the world's leading computer science instructors and seminar presenters, and author of more than a dozen books. He worked on the pioneering operating system teams in industry and academia that developed many of the techniques at the heart of operating systems like UNIX®, Windows NT™ and OS/2™.

Paul Deitel has taught Visual Basic, Java, C and C++ at numerous hardware and software companies, including Sun Microsystems, Digital Equipment Corporation, IBM, Open Environment Corporation, Adra Systems, and Cambridge Technology Partners, and is himself an expert developer.

The Deitels are principals of Deitel & Associates, Inc., an international training organization specializing in Visual Basic, Java, C and C++, and object technologies.

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

5 star
3 star
2 star
1 star
4.0 out of 5 stars
4.0 out of 5 stars
Most Helpful Customer Reviews
8 of 8 people found the following review helpful
4.0 out of 5 stars Excellent guide to C++ 14 Sep 2006
A great book into learning basic to itermidiate C++. The only reason I gave it 4 stars is the fact some of the print in the book is a little faint in places, but still readable.

The book begins with some very simple C++ programs to easwe you in, then leaps head first into OOP ( object orintated programing). Many other C++ books do not touch OOP till near the end, but this book shows toy how to learn basic class techniecs from the start, which is a great help for much later in the book as you can understand the code better.

Each of the large chapters ends with some questions and some programming exercises for you to do to practice even more with the newly aquired skill. This is a really good learning curve. The answers are not however included, but may be on the website.

Overall this is a very indepth book and teaches even a nonprogrammer that learning C++ is not at all as scary and as difficulr as many people say. I did previously own the 4th edition, and even though that one was all pretty and in color, I prefer the fith edition as the code is more up to date with todays compilers ( Dev=C++ and MSVC++ ), and the reading and explaination of the code is much more detailed.

The fifth edition also touches on vectors and templates, which the fourth edition only spoke about in a passing sentance, so you can learn and become even more profficient with the languauge as you learn it.

Get this book if you are serious about learning C++ from the ground up and want a full and formal guide to one of the most used computer langauges in the world to date.
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on (beta) 4.0 out of 5 stars  44 reviews
58 of 66 people found the following review helpful
5.0 out of 5 stars At last Deitel & Deitel delivered! 23 Jan 2005
By NeoTristan - Published on
I had always hated Deitel & Deitel's 'C++: How to program' iterations. I had always thought the book never quite lived up to its great potential because of its own ambition to be the best C++ textbook ever written. I had always thought the book was a terrible book not because of its contents, but how it presented them. I had also thought D & D were quite arrogant and obnoxious in terms of the rambling verbosity of translating their impressive knowledge into texts in elitist's fashion. That, along with the horrendous text fonds and repugnant color schemes, not to mention the ugliest coding presentation and the endless assult on my nerves launched by thousands of those ugly bees all over the textbook, literally made me nauseous (really). I think those were more than enough reasons to hate the book whether the actual contents were good.

The latest edition (5th) eradicates all sins, and rectifies the lows of the past editions. Well, except the bees... Even the bees manage to look kind of cute in light of the newest improvement.

The text fonds are all changed and color schemes are all toned down. It is so pleasant to the eyes. Ugly coding presentation and stiff graphic illustrations are replaced with much organized and refreshing style. Many of coding examples have also been replaced with more real world-oriented objects. The biggest improvement, in my opinion, is the writing style. Although the core contents are untouched, quite big chunks of the old contents were discarded and rewritten with much fluentness and simplistic style. The old D & D's infamous babbling out is significantly reduced. It is now actually quite enjoyable to read this book. Several chapters from the previous edition have been divided into smaller chapters and sequentially rearranged. Furthermore D & D will offer us free 'Multimedia Cyber Classroom' and 'C++ in the lab' along with free 'Student Solution Manual' available on the website. This is a very noble move by them and a very welcomed addition for people who try to learn C++. The only wish I have now is to ditch the somewhat out of place chapters like 'Web Programming' and 'Intro to XHTML' sections and beef up the advanced topics like 'Templates', 'File Processing', 'Data Structures' and 'STL'. I know individual book could be written for each of these chapters, but I'd rather have a little more in-depth knowledge on those topics over web programming. Overall, this is a vastly improved edition when compared to the previous editions. I am very happy with this book. D & D finally listened to readers' long time complains and delivered one of the best C++ textbook in the market. They completely redeem themselves with the newest iteration. I highly commend their lastest effort.

***My Previous Reviews on this book***
3rd Edition (3 stars out of 5)
'C++ How to Program' by Deitel & Deitel is one of those books that set out to be the one and only, the perfect textbook that teaches you everything about C++ to everyone from the absolute beginners to the truly advanced programmers all at once. The book falls very short under the weight of its own ambition. By just reading the table of contents, it seemed that the book properly offers the complete coverage of the syntax of the C++ language, and each topic seemed to be presented in the sensible order which facilitates the readers to learn C++ step by step without getting lost or tangled up with the bits of coverage all over the textbook. The only thing presented in the sensible order in this book is the table of contents. Despite the quite large volume, Paul and Harvey (D&D hereafter) decided to babble aimlessly in very verbose fashion without any focus or making any sense. I mean the language they employee is English only in appearance. D&D could have babbled in Russian and I wouldn't have known the difference. They don't seem to have the fundamental ability to deliver their knowledge to the readers in clear fashion, and the level of knowledge of C++ has nothing to do with it. Now 'C++ Primer' by Stanley Lippman and Josee Lajoie or 'The C++ Programming Language' by Bjarne Stroustrup are indispensable guides for the advanced programmers that will teach you so many techniques your ordinary textbook do not cover, and yes, they are definitely not for the novice programmers. This is not the case with D&D. I mean C++ is arguably the toughest programming language to master, but it doesn't have to be this painful just to browse through the textbook. From the get-go, D&D clearly aimed to please both "technically oriented people with little or no programming experience, and experienced programmers who want a deeper treatment of the language" (from chapter 1 section 1). This is such a contradiction. As a result, what could have been an impressive textbook became an expressway to frustration. Sentences tend to be written in the overly complex fashion without serving much purpose. They are just totally confusing and incomprehensive. Much concise, terse, and simplistic writing style is desired and would have done the job better for everyone. The higher level of knowledge on C++ doesn't have to be translated into more complicated writing. It gives out the wrong impression to the beginners that it is their lack of C++ knowledge that hinders the understanding of the book. D&D's ability to convey their knowledge to the readers doesn't match with their impressive programming career. The coding style is awful and definitely not recommended to anyone although it is not syntactically wrong. Too many details are explained in the context of C language as if the knowledge in C is assumed before learning C++. Layout and color scheme are extremely disoriented and tiresome to your eyes. The coverage of each topic is scattered all over the textbook. D&D just love to say "We will later discuss about...", "We previously discussed about...", and so on instead of focusing on each topic one at a time and then moving on. There are too many pop-out boxes for various tips and warnings that are repeated over and over and over to the point they are disturbing. D&D arrogantly try to write the textbook that teaches you all the syntax of the language and the lawbook that teaches you all the semantics and the techniques of the language at the same time. They set out to achieve the impossible and succeed to do neither. This book is too confusing for the beginners to the point that people will hate C++, and it is too repetitive and shallow for the advanced programmers. If anyone can overcome these difficult obstacles, however, this book has quite a lot of information. I would not recommend this book to anyone who just start learning C++. Believe me when I say this because you will be committed to the mental asylum within the first few minutes if you attempt to learn C++ with this book. Try 'Absolute C++' by Walter Savitch instead. If you have a solid knowledge on C++, D&D's book can be a decent reference book. Then again, you are better off with 'The C++ Programming Language' by Bjarne Stroustrup, 'C++ Primer' by Stanley Lippman and Josee Lajoie, and 'Effective C++ Series' by Scott Meyers if you are able to enjoy D&D's book.

4th Edition (3 stars out of 5)
The latest edition is marginally improved compared to the previous edition. The biggest difference is that the coding style is much easier to read now and more comments have been added to the program examples. The color has been toned down just a bit, but not enough to ease the pain to the eyes. Some of the lectures have been sequencially rearranged and some new methodology has been used for inheritance and polymorphism. But the core is essentially identical with the previous editions. Although this book has enormous potential to be the best C++ book in the market, the book still has the identity crisis. It really doesn't know which group of programmers it aims to help. It still is unfairly too complicated for the novice programmers and not enough substance for the advanced programmers. This is quite a book, a flawed masterpiece, so to speak. Only if D&D decide to shift the emphasis and focus on one group and lose the other, this could be a great book.

Some helpful tips for those who just started learning C++.

1) Keep in mind that C++ is a very hard and tough programming language to master.

C++ is arguably the most complicated programming language available today. It is by no mean THE perfect programming language, and it requires the tremendous amount of responsibilities from the programmer. However, no other language is as powerful, versatile, and flexible as C++. It gives the programmers the assembly-language-like freedom with the data types and the memory management. It offers the programmers the characteristics of both the high-level language and low-level language. It also provides the programmers both the efficient structure-oriented features and the strong object-oriented features at the same time.

2) C++ is not C, although C++ is derived from C language.

Although C++ is derived from C and inherited many features from C, C++ is NOT C. They are totally two different and separate languages just as Java is not C++. C is a structure-oriented language while C++ is object-oriented language. C++ has many new features that C can't even begin to dream about. Give C++ all due respect.

3) The perfect C++ textbook does not exist, so stop trying to find one.

Just about everyone who ever tried to learn C++ have attempted one way or another to find or to write that elusive perfect textbook that teaches you everything and satisfy the absolute beginners as well as the seasoned experts. The fact of the matter is there isn't one. Learning C++ can be a very long and frustrating process given the complexity of the language. It will take your full attention, devotion, and time to master C++ no matter which textbook you choose to use. Many books claim to be the one. Many programmers claim that the book they recommend is the one. But the experienced programmers will find the beginners' textbooks such as 'Starting out with C++' by Tony Gaddis insulting and waste of time while the novice programmer will find advanced textbooks like 'The C++ Programming Language' by Bjarne Stroustrup very intimidating and frustrating. It really depends on each individual's level of the knowledge on C++. One person's best textbook can be another person's total waste, and everyone has a different and unique way of digesting information. Make sure that you thoroughly check the contents before you choose to buy any C++ textbook. Instead of taking others' recommendations and advices for granted, you should try to find the right combination on your own. You will probably need to use a few different textbooks together, because single textbook cannot possibly cover all the topics and the required depth necessary to master C++. This is especially true for the advanced topics such as 'Templates', 'Data Structure', 'STL', and 'File Processing', which are broad and complicated enough to deserve a single textbook. I recommend 'Absolute C++' by Walter Savitch for the absolute novice programmers. If you have few or no prior programming experience, this will be one of the easiest textbooks available. If you are the advanced programmers, you really should be able to understand anything written about C++. 'C++ Primer' by Stanley Lippman and Josee Lajoie or 'Core C++: A software Engineering Approach' by Victor Shtern could substitute as the alternative textbook for the advanced programmers. If you are the expert programmers, 'C++ FAQs' by Marshall Cline, Greg Lomow, and Mike Girou, 'Effective C++' series by Scott Meyers and 'The C++ In-Depth Series' from Addison-Wesley should be adequate enough to satisfy your ego and to teach you many advanced techniques not found in other textbooks.
12 of 13 people found the following review helpful
3.0 out of 5 stars Rather lengthy and verbose for introducing concepts 16 April 2005
By John S. Haworth - Published on
While the book may be about the only game in town for learning C++ the authors have a tendency to present lengthy sample programs with a lot of other things going on besides the concept they are trying to demonstrate. The best way to learn programming is to do programming but the first examples should be very short,very concise, and to the point. The introductory examples should distill out any non-pertinent information which makes this book a difficult read at times.

A good way to learn is to actually type in the code without just pasting it from the CD. Many of the intro examples in the book are several pages long and discourage the reader from making the attempt.

We use the book in a class I am taking but the instructor gives short, concise, (AND EFFECTIVE) sample programs to introduce concepts. This has proven to be very effective in learning the many facets of things like pointers. This book jumps right into the thick of things and its hard to see the point of things. Because of this we RARELY use the text in class and rather build upon the code samples presented in class. Students tend to use the book as a reference, not as a primary source.
10 of 12 people found the following review helpful
5.0 out of 5 stars OOP and Classes - it all makes sense now! 8 Feb 2005
By Sam Buddy - Published on
I believe this book is /the/ place to start learning C++. You will quickly learn about all this 'object oriented' stuff that is thrown around and you will know and understand classes from very early in the book.

Like many others, I do recommend learning some basics of C first. This will not only put you in the right frame of mind for C++, but it will help you appreciate the evolution in programming that C++ is.

How much C? I think you should learn just a few things that can be picked up on-line with all the free tutorials out there. Learn: basic data types (int, char, float), declaring varibles, arithmatic operators, relation operator, fuctions (parameters and arguments), printf, scanf, if, if...else, and for loops. Don't stress over pointers, recursion, data structures, etc. with C if you just want to move into C++.

What this book will teach you: C++ from the start, wide varity of topics, structured programming, industry standards in programming, precise definitions of terms, hundreds of well written programs, games, math programs and many real-world use programs.

What this book will NOT teach you: graphics, windows, physics or MFC.

Another thing I wish to point out about this book is that it was writting by some pretty smart dudes. As in MIT grad smart. So some of the exercises at the end of the chapters may seem impossible, but (as they say in the start of the book) they included a wide varity of programming exercises to give options if the text were used as part of a college course. Some of them are meant to be term projects or done with a group of people. However, don't let that get you down. There are many exercises to choose from and some are very simple. For example chapter four has 36 review questions, problems and programming exercises. Chapter six has an amazing 60!
10 of 12 people found the following review helpful
5.0 out of 5 stars A must have reference for C++ 3 Jan 2006
By Mike Tallhamer - Published on
Harvey and Paul Deitel continue to improve on what has already has been one of the most widely used college textbooks, and in my opinion best C++ reference books, on the market today. I originally purchased the 4th addition while in school as a way to teach myself C++ for use in many of my science and engineering classes and found the intuitive approach to learning the C++ language presented in the book an easy and effective way to pick up the language. It took me from being a novice part time programmer and turned me into a critical thinking application designer through the way the book presented the more mature features of both the language and the software development process. It has proved itself to be an invaluable resource to both me and the many friends that have borrowed it in the past. This 5th edition with its new C++ examples and its presentation of UML 2.0, C++ fundamentals, web application programming, data structures, the STL, and many of their applications through step by step software engineering projects gives a beginning programmer (or more mature programmer looking for a good refresher / reference book) everything he or she needs to become an effective application designer using the C++ language. I would recommend this, and any other Deitel and Deitel text, to anyone interested in a thorough presentation of efficient and reliable approaches to software engineering practices with any programming language, especially C++. This book is sure to prove to anyone who reads it that it is yet another improvement on an already excellent all around textbook and reference for the C++ language and an asset to those interested in learning C++ on their own or in the classroom
21 of 27 people found the following review helpful
1.0 out of 5 stars F- - 15 Aug 2006
By S. Simon - Published on
This was the required text for an introductory C++ class I took last semester where I received an A. I point that out so that nobody will suspect bitterness on my part when I say that this is simply the worst textbook I have ever owned.

The main problem with the text is that everything you need to know is buried deep within long rambling blocks of poorly spaced paragraphs, camouflaged amongst unnecessary tidbits. Simple concepts that could be explained in one sentence drag on for pages. As a reference book, it is completely useless, because you will just not be able to find a simple succinct example.

So, if you were looking for a book to teach yourself C++ pass this one by, but if you are unfortunate enough to have this as the required text for a class be ready to read and re-read the same chapter again and again and again before you can figure out what the authors are doing their best to obscure from you.
Were these reviews helpful?   Let us know
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for similar items by category