Home > Store

C++ How to Program, 4th Edition

Register your product to gain access to bonus material or receive a coupon.

C++ How to Program, 4th Edition

Premium Website

  • Sorry, this book is no longer in print.
Not for Sale



  • NEW - Updated case study—Focuses on object-oriented design using the latest UML standard. Illustrates the entire process of object-oriented design from conception and design to programming and implementation. This optional case study is introduced in Chapter 2 and built upon in the next nine chapters.
    • Introduces readers to the UML and key notational schemes that they will encounter in the real world.

  • NEW - Enhanced and earlier treatment of strings and arrays as objects—Using standard C++ classes string and vector.
    • Enables students to begin working with objects and familiarize themselves with basic object-oriented programming concepts.

  • NEW - Improved exception handling and operator overloading presentations.
    • Assists in comprehension of these vital programming concepts.

  • NEW - Improved object-oriented programming presentation.
    • Provides students with strong foundation in the object-oriented paradigm.

  • NEW - New code-highlighting style.
    • Focuses students on the new code element in a program.

  • Substantial treatment of the standard template library—Covers STL containers, container adapters, algorithms, iterators and resources on the Web.
    • Focuses students on code reuse, rather than “reinventing the wheel.”

  • Detailed coverage of C++ input/output streams and file processing.
  • Text adheres to the latest draft of the ANSI C++ standards.
    • Provides students with the most up-to-date coverage.

  • CD-ROM with each text.
    • Includes a C++ compiler, source code for all the book's examples and hyperlinks to C++ demos and Internet resources.

  • Full-color text—Includes syntax coloring of key code.
    • Helps students to interpret the code they examine.

  • Signature “Live Code Approach”—Presents language features in the context of a wide variety of complete working C++ programs. Features more than 10,000 lines of code in approximately 250 complete working programs.
    • Enables students to confirm that programs run as expected. Readers can also manipulate the code from the CD-ROM in the back of the book, from the book's Companion Website (www.prenhall.com/deitel), and from www.deitel.com.

  • Outstanding, consistent and applied pedagogy—Icons throughout identify Software Engineering Observations; Good Programming Practices; Common Programming Errors; Portability Tips; Performance, Testing and Debugging tips.
    • Provides students with hundreds of valuable programming tips and facilitates learning.

  • Extensive set of interesting exercises and substantial projects—More than any other C++ book on the market.
    • Encourages students to apply what they've learned in each chapter.

  • Also available with the award-winning Multimedia Cyber Classroom CD-ROM —In The Complete C++ Training Course, Student Edition, 4/E.
    • Includes approximately 20 hours of detailed, expert audio descriptions of “live code,” hundreds of self-review questions (with answers), hundreds of programming exercises (half with answers), hundreds of tips that are marked with icons and show how to write C++ code that's portable, reusable, and optimized for performance; and full-text searching and hyperlinking.


  • Copyright 2003
  • Edition: 4th
  • Premium Website
  • ISBN-10: 0-13-038474-7
  • ISBN-13: 978-0-13-038474-4

The complete, authoritative DEITEL LIVE-CODE introduction to C++, Object-Oriented Design (OOD) with the UML and Web programming with CGI.

This Fourth Edition of the world's most widely used C++ textbook explains C++'s extraordinary capabilities, presents an optional object-oriented design and implementation case study with the Unified Modeling Language (UML) from the Object Management Group, and introduces n-tier Web-applications development with CGI.

Dr. Harvey M. Deitel and Paul J. Deitel are the founders of Deitel & Associates, Inc., the internationally recognized corporate-training and content-creation organization specializing in C++, C, Visual C++® .NET, Java, C#, Visual Basic® .NET, XML, Python, Perl, Internet, Web, .NET and object technologies. The Deitels are the authors of several of the world's best-selling programming-language textbooks, including Java How to Program, 4/e, and Internet & World Wide Web How to Program, 2/e.

In C++ How to Program, 4/e, the Deitels introduce the fundamentals of object-oriented programming and generic programming in C++. Key topics include:

  • Control structures/Functions/Pointers
  • Classes/Objects/Encapsulation
  • OOP/inheritance/Polymorphism
  • Object-Oriented Design with the UML
  • string and vector objects
  • Pointer-based arrays and strings
  • Exception handling/Operator overloading
  • Templates/Data structures/Files/Streams
  • Standard Template Library (STL)
  • Bit and character manipulation
  • Namespaces/Run-Time Type Information
  • N-tier Web applications/CGI/XHTMLTM

C++ How to Program, 4/e, helps students build real-world C++ applications. It includes:

  • Hundreds of LIVE-CODE programs with screen captures that show exact outputs
  • Extensive Internet and World Wide Web resources to encourage further research
  • Hundreds of tips, recommended practices and cautions—all marked with icons

C++ How to Program's teaching resources include Web sites (http://www.deitel.com, http://www.prenhall.com/deitel and http://www.informit.com/deitel) with the book's code examples (also on the enclosed CD) and information for faculty, students and professionals; an optional CD (C++ Multimedia Cyber Classroom, 4/e) with solutions to approximately half the exercises in C++ How to Program, 4/e, interactivity features—including hyperlinks and audio walkthroughs of the code examples.

Sample Content

Table of Contents

(NOTE: Each chapter begins with Objectives, an Outline, and an Introduction and ends with a Summary, Terminology, Self-Review Exercises, Self-Review Exercise Answers, and Exercises.)

 1. Introduction to Computers and C++ Programming.

 2. Control Structures.

 3. Functions.

 4. Arrays.

 5. Pointers and Strings.

 6. Classes and Data Abstraction.

 7. Classes: Part II.

 8. Operator Overloading.

 9. Inheritance.

10. Virtual Functions and Polymorphism.

11. C++ Stream Input/Output.

12. Templates.

13. Exception Handling.

14. File Processing.

15. Data Structures.

16. Bits, Characters, Strings and Structures.

17. The Preprocessor.

18. C Legacy Code Topics.

19. Class String and String Stream Processing.

20. Standard Template Library (STL).

21. Standard C++ Language Additions.

Appendix A: Operator Precedence Chart.

Appendix B: ASCII Character Set.

Appendix C: Number Systems.

Appendix D: C++ Internet and Web Resources.




Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership