C++ How to Program, Fourth Edition / Edition 4

Paperback (Print)
Buy Used
Buy Used from BN.com
(Save 37%)
Item is in good condition but packaging may have signs of shelf wear/aging or torn packaging.
Condition: Used – Good details
Used and New from Other Sellers
Used and New from Other Sellers
from $1.99
Usually ships in 1-2 business days
(Save 97%)
Other sellers (Paperback)
  • All (32) from $1.99   
  • New (1) from $18.59   
  • Used (31) from $1.99   
Sort by
Page 1 of 1
Showing All
Note: Marketplace items are not eligible for any BN.com coupons and promotions
Seller since 2006

Feedback rating:



New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

PAPERBACK New 0130384747 Brand new soft cover book. Soft cover books may show light shelf wear. Item ships within 24 hours with Free Tracking. New, unused, soft-cover book with ... minor cover and/or page damage (typically cut, tear, crease, etc.). Content is NOT affected. Used items may or may not include CDs, InfoTrac, etc. Item ships within 24 hours with free tracking. Read more Show Less

Ships from: Foley, AL

Usually ships in 1-2 business days

  • Canadian
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
Page 1 of 1
Showing All
Sort by


With nearly 250,000 sold, Harvey and Paul Deitel'sC++ How to Programis the world's best-selling introduction to C++ programming. Now, this classic has been thoroughly updated! The authors have given this edition a general tune-up of object-oriented programming presentation. The new Fourth Edition has a new code-highlighting style that uses an alternate background color to focus the reader on new code elements in a program. The Deitels' C++ How to Program is the most comprehensive, practical introduction to C++ ever published — with hundreds of hands-on exercises, roughly 250 complete programs written and documented for easy learning, and exceptional insight into good programming practices, maximizing performance, avoiding errors, debugging, and testing. This new Fourth Edition has an upgraded OOD/UML case to latest UML standard, as well as significant improvements to exception handling and operator overloading chapters. Features enhanced treatment of strings and arrays as objects earlier in the book using standard C++ classes, string and vector. The Fourth Edition retains every key concept and technique ANSI C++ developers need to master: control structures, functions, arrays, pointers and strings, classes and data abstraction, operator overloading, inheritance, virtual functions, polymorphism, I/O, templates, exception handling, file processing, data structures, and more. It also includes a detailed introduction to Standard Template Library (STL) containers, container adapters, algorithms, and iterators. The accompanying CD-ROM includes all the code from the book as well as essential software for learning C++. For anyone who wants to learn C++,improve their existing C++ skills, and master object-oriented development with C++.
Read More Show Less

Product Details

  • ISBN-13: 9780130384744
  • Publisher: Pearson
  • Publication date: 8/28/2002
  • Series: How to Program Series
  • Edition description: Older Edition
  • Edition number: 4
  • Pages: 1408
  • Product dimensions: 7.02 (w) x 9.18 (h) x 1.65 (d)

Table of Contents

1 Introduction to Computers and C++ Programming 1
2 Control Structures 70
3 Functions 169
4 Arrays 252
5 Pointers and Strings 319
6 Classes and Data Abstraction 404
7 Classes: Part II 468
8 Operator Overloading; String and Array Objects 546
9 Object-Oriented Programming: Inheritance 609
10 Object-Oriented Programming: Polymorphism 662
11 Templates 718
12 C++ Stream Input/Output 737
13 Exception Handling 779
14 File Processing 808
15 Class string and String Stream Processing 850
16 Web Programming with CGI 880
17 Data Structures 942
18 Bits, Characters, Strings and Structures 1000
19 Preprocessor 1053
20 C Legacy Code Topics 1065
21 Standard Template Library (STL) 1090
22 Other Topics 1183
A: Operator Precedence Chart 1214
B ASCII Character Set 1216
C: Number Systems 1217
D C++ Internet and Web Resources 1230
E Introduction to XHTML 1236
F XHTML Special Characters 1274
Bibliography 1275
Index 1281
Read More Show Less


Welcome to ANSI/ISO Standard C++! At Deitel & Associates, we write college-level programming-language textbooks and professional books and work hard to keep our published books up-to-date with a steady flow of new editions. Writing C++ How to Program, Fourth Edition, (4/e for short), was a joy. This book and its support materials have everything instructors and students need for an informative, interesting, challenging and entertaining C++ educational experience. As the book goes to publication, it is compliant with the latest version of the ANSI/ISO C++ Standard (one of the most important worldwide standards for the computing community) and with object-oriented design using the latest version of the UML (Unified Modeling Language) from the Object Management Group (OMG). We tuned the writing, the pedagogy, our coding style, the book's ancillary package and even added a substantial treatment of developing Internet- and Web-based applications. We have added a comprehensive Tour of the Book section to Chapter 1. This will help instructors, students and professionals get a sense of the rich coverage the book provides of C++ object-oriented programming, object-oriented design with the UML and generic programming. If you are evaluating the book, please read the Tour of the Book now in pages 44-46.

Whether you are an instructor, a student, an experienced professional or a novice programmer, this book has much to offer. C++ is a world-class programming language for developing industrial-strength, high-performance computer applications. We carefully audited the manuscript against the ANSI/ISO C++ standard document, which defines C++, and we were privileged to have as areviewer Steve Clamage of Sun Microsystems who heads the ANSI J16 Committee responsible for evolving the C++ standard. As a result, the programs you create by studying this text should port easily to any ANSI/ISO-compliant compiler.

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 18 Customer Reviews
  • Anonymous

    Posted March 1, 2005

    Outstanding self-learning tools

    I have found your C++ How to Program and the C++ Cyber Classroom CD really outstanding self-learning tools. It is usually difficult to learn a discipline without attending lectures, but the combination of this textbook and the CD make it not only possible, but enjoyable as well. Congratulations, and continue the wonderful series !!!

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted February 21, 2005

    Superb and authoritative text!

    It's only recently I discovered Deitel's publications, but I was impressed. As a recent IT undergraduate, I have long searched for a book that is truly written for beginners. This text ranks on my top-ten list. Not only is it presented in color and easy to read, it's superb for those who have only the very basics of programming experience and want to move forward. This is a ground-up text that actually presents programming from a teaching perspective because it gives assignments and provides a wealth of chapter review questions. No wonder it's a popular selection among university instructors throughout the world. Many similar texts unilaterally seem to lack all of the basics of object-oriented programming, and try to teach beginners how to program through mere copying of code. Not Deitel & Deitel. This is the real deal: clear, concise, comprehensive. As a WORKING professional in technology, I highly recommend this book for those who want to learn how to program in C++.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted August 1, 2004

    They keep pumping it out

    My idea of a book with a 'how to' title is give the reader basic skills from the start of language syntax, control structures, decision, benefits over this language over others, etc. NOT a rag demonstrating the authors prowress on the topic. In the first few chapters, this text starts out like any another: explaining why polymorphism and inheritance are the heart of good object oriented programming. Yawn! Then falls flat somewhere around class instantiation. Here, a boat-load of code comes out of nowhere with explanations of what they did but they fail to tell us why. This trend continues throughout the book with greater quantities of hard to follow code (little emphasis on good design) without decent instruction of why they did what they did. Before dismissing this point, take a good look at the reviews that gave this work anything better than 2 stars: Computer engineers, instructors, people who HAVE to know this language and it's nuances. Like others who give this the same review, I had to buy it for school.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted October 1, 2004


    it's a practical book

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted July 20, 2004

    The C++ Defacto Reference

    C++ How to Program is in my opinion the defacto standard for learning and referencing the C++ language. The thoroughness of the text and the myriads of examples places this reference at the forefront. The excellent transition explanations from structured to object oriented programming is so important to both the amature and professional developer. One very useful bonus to this text is the introduction to UML modeling and how it fits into object oriented programming through the use of a case study. If you are going to be a serious C++ programmer, this text will be on your shelf.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted May 25, 2004

    The Complete C++ Training Course

    I would just like to say that I have been wanting to get into video game programming for a long time now and having ADHD it was hard for me to keep my focus. I have picked up book after book on game programming and have learned very little, most of which I didn¿t understand. I was told the best approach to getting into video game programming was to learn a language, preferably C++. Having gone through many C++ books in the past and learning very little I was interested in find a text book/school style approach to learning. I randomly meet someone in a book store section of the programming books, and I asked him what he thought the best book on learning C++ would be. He recommended your C++ How to Program book. After looking over the book and the Complete Training Course, I decided to try the Complete version. I have now completed the first chapter and I just wanted to let you know that I have learned as much in this first chapter as I could have in a class room. If the rest of the book is anything like the first chapter I feel that I will be well underway to learning for the first time the C++ language. I just want to point out a few parts of the book that were extremely helpful to me: the speaking parts of the online book were a wonderful escape from the reading and helped reinforce what I read, the terminology at the end of the chapter forced me to go back through the text and learn the definitions of each term, the reviews were a very good way of ensuring that I understood what I read, and the exam was a great test to see how much actually sunk in. Thanks for the great book and I look forward to completing it.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted April 13, 2004

    I'm now shopping for a replacement to this book.

    While I am sure that many experienced programmers find this book useful, I honestly don't know how it sells so well. Perhaps the sales are due to scholastic requirements - that is why I purchased my copy. I take distance learning courses that are fast-paced and information intensive. I am used to learning almost exclusively from texts, and I can tell you that this one is both an eyesore and difficult to follow. There are an incredible number of color and font changes based on subject, hint, summarizing thoughts, code keywords, or topic headers. The code sample backgrounds are colored and busy - unlike any software development tool you are likely to use. There are bolded and italized terms that may or may not be key terms for a topic. Using the index is a foolish venture at best, since there is no easy way to discern where the term is on the page. The text and samples are hard to follow if you do not already have considerable coding experience in C++. I find myself reading paragraphs repeatedly, hoping that the concepts will finally click. I've had good luck learning the concepts using online resources, but I have reached a point where I need a cohesive and well-rounded text, and folks, this books isn't that. Unless you are just needing a refresher, the code examples leave a bit to be desired. Honestly, I can find very little good to say about this text. I feel like I wasted the money I spent on it, and I plan to avoid other texts and guides by this author in the future.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted May 17, 2004

    Amazing Book!

    I just purchased 'The Complete C++ Training Course' yesterday and am truly amazed at the entire kit. I have been a Visual Basic programmer for the past six years specializing in automation, PLC and microcontroller integeration and have been wanting to learn C++. I have probably purchased over 20 books on C++ and have learned very little. Just over the past day and a half I have learned more from your training kit, with 'C++ How to Program (4th Edition)' included, than in the past two years. It is without a doubt that your book is the most comprehensive and best one on the market. I am looking forward to purchasing the book on VC++ 6 MFC. THANK YOU!

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted June 9, 2004

    Good book, but weird

    I read this book back in high school and I found that I learned a lot from it. Only thing I didn¿t like about this book is the fact that it doesn¿t have a good section on STL, and it doesn¿t show major data structures that are used in everyday programming. I feel that this book is good for first learning C++, and then you will move onto more advance C++ books. The only thing that I felt was out-of-balance for this book was the section on CGI scripts because the whole book was about C++ then there was this tiny section on CGI which makes no sense. I recommend this book to all my peers who want to learn the C++ language and don¿t want to waste time reading over large detail about something.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted September 26, 2003

    Powerfull methods of teaching

    This book like your home teacher. It gives you examples how exactly you need to use language instruments in your area. I am going learn how to use Finite elements method. And now I have a lot of information to make it real.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted August 25, 2003

    A Clear and Thorough Introduction to C++

    I think this is a wonderful book! I especially appreciate how thorough the book is in covering the many fine details of C++, and the great clarity of the writing. Each chapter includes several complete example programs, explained in detail. The book should work well both for beginning programmers and experienced programmers just learning C++. The extensive index makes the book a good reference on C++, too. Also, the book looks great! The cover, the figures, the headings, the clever ant characters ... all these details make it very inviting to read. The CD is an excellent bonus feature: it contains all of the example programs, so that you can run them immediately on your computer as you study them. In summary, I believe this is a book of great value.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted February 18, 2003


    --The book introduces first PROCEDURAL than Object-Oriented Programming (OOP) with C++. --The book is poor for giving philosophy of Object Oriented Modeling and why OOP?(fortunately there is an optional OOAD case study with industry dominant satandard for modeling software intensive system , namely UML-Unified Modeling Language- ). --The bookhas good and valuable programming tips for developers which are highlighted. --The book contains full-code examples not just code fragments. --Most of he topics explained step by step with full-code examples patiently(sometimes you may bore with this step by step explanations). --Most topics has plenty of coding excercises for readers to practice(Unfortunately the biggest chapter that inroduce STL has a very few and uninteresting excercises). --The book does not include any GUI design and implementation with C++. --The book does not include Computer Graphics application with C++ via some graphic packages. --THE MOST IMPORTANT FEAURE THAT THE BOOK LACKED IS THAT IT DOES NOT MAKE READERS AWARE OF THE POWER OF C++ ,ITS USAGE IN INDUSTRY,AMAZING THINGS YOU CAN DO WITH C++.AFTER STUDY THE BOOK IN A COURSE ,A NOVICE MAY BE DISSAPOINTED BY COMPARING PROGRAMS THAT SHE/HE ABLE TOO WRITE AND COMMERCIAL SOFTWARES IN THE MARKET.THIS MAY LOSE OF MOTIVATION OF READERS FOR FURTHER STUDY IN C++.THE BOOK DOES NOT OPEN A VISION TO READERS FOR WHERE TO GO NEXT? FOR ADVANCES IN C++ FROM COMPUTER GRAPHICS TO REAL-TIME EMBEDDED SYSTEMS.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted March 20, 2003

    This is an awesome book!

    I have several C++ books on my bookshelf, and the fact that I went out looking for another one tells you that none of them (even collectively) left me with an understanding of C++ solid enough to feel comfortable writing 'real-world' applications... until I read this book. Initially, I had a hard time parting with nearly $80 for this book, but within the first couple of chapters it became apparent that it was WELL WORTH every penny. I read this book on my own (not part of a C++ course) cover-to-cover, and I have to say that not only is this the best C++ book I've read, it right up near the top as being one of the best books I've EVER read... period. The authors go to great lengths to provide complete code examples, and then walk through them line-by-line in great detail to explain the concepts. This was absolutely invaluable for someone like me trying to learn programming on my own. They even have examples of how NOT to do things, and give you the compiler error messages you can expect to see because of it. The book is well structured and each topic builds on previously covered ones in a logical way. I also liked their sidebar tips 'Good Programming Practices', 'Common Programming Errors', 'Performance Tips',and 'Software Engineering Observations' which gave additional perspectives to round out the studies. I can't say enough good things about this book, but my bottom line is this... if you want to start from scratch and end up with an 'industrial strength' working knowledge of C++ programming, then buy this book.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted January 12, 2003

    A Book F/ The Diligent & Intelligent Thinker-Implementer

    Many yrs ago, I read the 2nd edition and thought it was a adequately well-written book. Recently, I got the 4th edition to refresh my skill in writing C++ code. Noticed that certain chapters were re-arranged. The best way to learn object-oriented C++ is to understand the concepts from a cause and effect pov. I am a visual learner and I believe that Deitel did a good job in blending the concept with UML-based diagrams. It also included [EZ to Understand] code examples. This book can also be used as a reference guide or a beginner guide for those with some programming background. No one book does everything for everyone. No one writing style is perfect for everyone. For someone with a solid programming background and focused on writing good "solid" code, this book is pretty darn good.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted November 20, 2002

    Thorough and well-structured

    I read the second edition of this book for a class I had on C++. I also had a good teacher, but if I missed a class or anything I was able to easily pick up the basic material from the book. The examples are clear and simple, but complete. The text has enough that it can explain something you're confused about, but also is structured such that you can also skim through stuff you already know fairly well and be able to read and understand the later chapters. I wouldn't recommend reading it cover-to-cover, but rather going section-by-section making sure that you understand each concept, not necessarily read every word about that concept. Anyway, it's a good book to learn from and also a good reference book that you'll keep. I later found that in reviewing the material some time after, I was able to pick it up again very quickly by some examples and stuff in the book. Highly recommended.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted November 19, 2002

    Poor Book

    This poor is not very well written at all. It doesn't explain concepts in details and the exercises don't relate to the material presented in the chapters.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted September 13, 2002

    Amazing book!

    I am taking two programming course this fall and one of them required Visual Basic .net how to program by the same authors. It is one of the best books I have ever purchased. So when my C++ class required a book by a different author I ran out and purchased this book. The Deitel books are written so that any level of programmer can read and understand them. There are several programming examples in each chapter. Each example builds on the previous, which allows you to learn to program one step at a time. Also the authors provide an amazing amount of supplemental information and resources for each book on their website. To sum up the book in a phrase: If everyone knew about Deitel books other computer programming authors would probably go out of business!

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted October 21, 2002

    Poorly Written

    Flashy graphics do not make up for poor and laborous explanations of concepts. They spend much of the book saying that they are going to talk about something in a later chapter. Explanations are unclear and tediously over complicated. I love a well written educational book when I read one. I regret that I wasted my $ here.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing all of 18 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)