C++ How to Program (Early Objects Version) Global Edition Book (10e) : 9781292153414

C++ How to Program (Early Objects Version) Global Edition Book (10e)

Published by
Pearson Higher Ed USA
Title type
NZ/Pacific customers only
Please note: You can only purchase up to 2 of this product at a time.
This eText can only be purchased by people residing in New Zealand, Fiji, Samoa, Tonga or Cook Islands with a credit card from the same country. Click here to find the Pearson website for your region.

Were you looking for the book with access to MyLab Programming? This product is the VitalSource eBook alone, and does NOT come with access to MyLab Programming. Students, if MyLab Programming is a recommended/mandatory component of the course, please ask your instructor for the correct ISBN and course ID.  

C++ How to Program (Early Objects Version), Global Edition VitalSource eBook

Digital Access Code. When you buy an eBook you will receive a unique digital redemption code and instructions on how to access this product.

Please note: eBooks are available for download immediately and cannot be returned once purchased.

VitalSource eBook - A digital book that fits your portable lifestyle and allows you to:

  • search for key concepts, words and phrases
  • make highlights and notes as you study
  • share your notes with friends
  • read on any device

The full text downloaded to your computer

The eBook is downloaded to your computer and accessible offline through the free VitalSource Bookshelf, available online and also via the iPad/Android app. When the eBook is purchased, you will receive an email with your access code.

Time Limit

Pearson's Higher Education and Professional VitalSource products do not have an expiry date. You will continue to access your VitalSource products whilst you have your VitalSource Bookshelf installed.

Find out more about eBooks

About the book

For courses in C++ Programming

The best-selling C++ How to Program is accessible to readers with little or no programming experience, yet comprehensive enough for the professional programmer. The Deitels’ signature live-code approach presents the concepts in the context of full working programs followed by sample executions. The early objects approach gets readers thinking about objects immediately–allowing them to more thoroughly master the concepts. Emphasis is placed on achieving program clarity and building well-engineered software. Interesting, entertaining, and challenging exercises encourage students to make a difference and use computers and the Internet to work on problems. To keep readers up-to-date with leading-edge computing technologies, the Tenth Edition conforms to the C++11 standard and the new C++14 standard.

Table of contents
  • 1 Introduction to Computers and C++ 1
  • 2 Introduction to C++ Programming, Input/Output and Operators
  • 3 Introduction to Classes, Objects, Member Functions and Strings
  • 4 Algorithm Development and Control Statements: Part 1
  • 5 Control Statements: Part 2; Logical Operators
  • 6 Functions and an Introduction to Recursion
  • 7 Class Templates array and vector; Catching Exceptions
  • 8 Pointers
  • 9 Classes: A Deeper Look
  • 10 Operator Overloading; Class string
  • 11 Object-Oriented Programming: Inheritance
  • 12 Object-Oriented Programming: Polymorphism
  • 13 Stream Input/Output: A Deeper Look
  • 14 File Processing
  • 15 Standard Library Containers and Iterators
  • 16 Algorithms
  • 17 Exception Handling: A Deeper Look
  • 18 Introduction to Custom Templates
  • 19 Custom Templatized Data Structures
  • 20 Searching and Sorting
  • 21 Class string and String Stream Processing: A Deeper Look
  • 22 Bits, Characters, C Strings and structs
  • Chapters on the Web
  • A Operator Precedence and Associativity
  • B ASCII Character Set
  • C Fundamental Types
  • D Number Systems
  • D.1 Introduction
  • D.2 Abbreviating Binary Numbers as Octal and Hexadecimal Numbers
  • D.3 Converting Octal and Hexadecimal Numbers to Binary Numbers
  • D.4 Converting from Binary, Octal or Hexadecimal to Decimal
  • D.5 Converting from Decimal to Binary, Octal or Hexadecimal
  • D.6 Negative Binary Numbers: Two’s Complement Notation
  • E Preprocessor
  • E.1 Introduction
  • E.2 #include Preprocessing Directive
  • E.3 #define Preprocessing Directive: Symbolic Constants
  • E.4 #define Preprocessing Directive: Macros
  • E.5 Conditional Compilation
  • E.6 #error and #pragma Preprocessing Directives
  • E.7 Operators # and ##
  • E.8 Predefined Symbolic Constants
  • E.9 Assertions
  • E.10 Wrap-Up
  • Appendices on the Web
  • Index
Features & benefits

Focus on object-oriented programming

  • Early-objects approach. Accessible to even the most novice programmer, the book introduces the basic concepts and terminology of object technology in Chapter 1 and then asks readers to develop their first customised classes and objects in Chapter 3. Presenting objects and classes early gets readers thinking about objects immediately so they can master these concepts more thoroughly.
  • C++ Standard Library String. C++ offers two types of strings–string class objects (which are used beginning in Chapter 3) and C strings. Most occurrences of C strings are replaced with instances of C++ class string to make programs more robust and eliminate many of the security problems of C strings. C strings are discussed later in the book to prepare readers for working with the legacy code that they will encounter in industry.
  • C++ Standard Library array. C++ offers three types of arrays–arrays and vectors (which are used beginning in Chapter 7) and C-style, pointer-based arrays which are discussed in Chapter 8. The primary treatment of arrays uses the Standard Library’s array and vector class templates instead of built-in, C-style, pointerbased arrays. Built-in arrays are also covered because they remain useful in C++ and and will enable students  to read legacy code.
  • Crafting valuable classes. To prepare readers to build valuable reusable classes, Chapter 10 begins with a test-drive of class template string–allowing students to see an elegant use of operator overloading before they implement their own customised class with overloaded operators. In the Chapter 10 case study, students will build their own custom Array class, then in the Chapter 18 exercises they will  convert it to a class template.
  • Case studies in object-oriented programming. Several well-engineered, real-world case studies are presented, including the Account class in Chapter 3, Student class in Chapter 4, DollarAmount class in Chapter 5, GradeBook class in Chapter 7, the Time class in Chapter 9, the Employee class in Chapters 11—12, and more.
  • Optional case study: Using the UML to develop an object-oriented design and C++ implementation of an ATM. UML™ (Unified Modeling Language™)  is introduced  in the early chapters. Online Chapters 25 and 26 include an optional object-oriented design case study using the UML. To help them “tie it all together” and truly understand object orientation, students will learn to:
    • design and fully implement the software for a simple automated teller machine (ATM);
    • analyse a typical requirements document that specifies the system to be built;
    • determine the classes needed to implement that system, the attributes the classes need to have, the behaviors the classes need to exhibit and how objects of the classes must interact with one another to meet the system requirements;
    • produce a complete C++ implementation from the design.
  • Understanding how polymorphism works. Chapter 12 contains a detailed diagram and explanation of how C++ typically implements polymorphism, virtual functions and dynamic binding “under the hood.”
  • Object-oriented exception handling. Basic exception handling is integrated early in the book in Chapter 7. Instructors can easily pull more detailed material from Chapter 17, Exception Handling: A Deeper Look.
  • Custom template-based data structures. A rich multi-chapter treatment of data structures is provided–see the Data Structures module in the chapter dependency chart to plan your instruction.
  • Three programming paradigms. Structured programming, object-oriented programming, and generic programming are all discussed to give readers a thorough understanding of programming models.

Enhance learning with outstanding pedagogical features

  • Rich, early coverage of C++ fundamentals. Chapter 2 provides a friendly introduction to C++ programming. Chapters 4 and 5 clearly discuss control statements and algorithms.
  • Live-code approach. The book is loaded with hundreds of “live-code” examples–most new concepts are presented in complete working C++ applications, followed by one or more executions showing program inputs and outputs.
  • Syntax coloring. For readability, all the C++ code is syntax colored, similar to the way most C++ integrated-development environments and code editors syntax color code.
  • Code highlighting. Light-blue shaded rectangles highlight key code segments.
  • Using fonts for emphasis. The defining occurrence of each key term appears in bold blue text for easy reference.
  • Examples. A broad range of example programs from computer science, business, simulation, game playing and other topics keep readers engaged with the material.
  • Interesting, entertaining, and challenging exercises. Each chapter concludes with a substantial set of exercises, including simple recall of important terminology and concepts, identifying the errors in code samples, writing individual program statements, writing small portions of C++ classes and member and non-member functions, writing complete programs and implementing major projects. Exercises include Making a Difference exercises, which encourage readers to use computers and the Internet to research and solve significant social problems.
  • Clearly-stated objectives. The opening quotes are followed by a list of chapter objectives to focus students’ learning.
  • Programming Tips. Programming tips help readers focus on key aspects of program development. These tips and practices represent the best the authors have gleaned from a combined seven decades of teaching and industry experience.
  • Summary Bullets. For easy reference, a section-by-section, bullet-list summary of the chapter includes the page number of each term’s defining occurrence.
  • Index. An extensive index includes defining occurrences of key terms highlighted with a bold blue page number.
  • Self-Review Exercises and Answers. Extensive self-review exercises and answers are included for self-study.
  • Illustration and figures. Abundant tables, line drawings, UML diagrams, programs, and program outputs are included to bring the content to life.
  • Online chapters. Four online chapters expand on the core content in the printed book.
  • Debugger appendices. Debugger appendices include Appendix H, Using the Visual Studio Debugger, Appendix I, Using the GNU C++ Debugger and Appendix J, Using the Xcode Debugger.
  • VideoNotes. In each of these videos, co-author Paul Deitel discusses key code examples in further detail.

Keep your course current on the C++11 and C++14 standards.

  • Discussions of the new C++14 capabilities.
  • Integrating C++11 capabilities further into the code examples, because the latest compilers are now supporting these features.
  • Uniforming initialisation with list initialiser syntax.
  • Always using braces in control statements, even for single-statement bodies.
  • Replacing the Gradebook class with Account, Student and DollarAmount class case studies in Chapters 3, 4 and 5, respectively. DollarAmount processes monetary amounts precisely for business applications.
  • C++14 digit separators in large numeric literals.
  • Updating Type &x to Type& x and Type *x to Type* x in accordance with industry idiom.
  • Using C++11 scoped enums rather than traditional C enums.
  • Bringing terminology in line with the C++ standard.
  • Bolding key terms in summaries for easy reference.
  • Removing extra spaces inside [], (), <> and {} delimiters.
  • Replacing most print member functions with toString member functions to make classes more flexible–for example, returning a string gives the client code the option of displaying it on the screen, writing it to a file, concatenating it with other strings, etc.
  • Using ostringstream to create formatted strings for items like the string representations of a Time, rather than outputting formatted data directly to the standard output.
  • For simplicity, using the three-file architecture is deferred from Chapter 3 to Chapter 9, so all early class examples define the entire class in a header.
  • Reimplementation of Chapter 10’s Array class operator-overloading example with unique_ptrs in Chapter 24. Using raw pointers and dynamic-memory allocation with new and delete is a source of subtle programming errors, especially “memory leaks”–unique_ptr and the other smart pointer types help prevent such errors.
  • Using lambdas rather than function pointers in Chapter 16, Standard Library Algorithms. This will get readers comfortable with lambdas, which can be combined with various Standard Library algorithms to perform functional programming in C++.
  • Enhancing the treatment of Standard Library containers, iterators, and algorithms in Chapters 15 and 16 with additional C++11 and C++14 features.
  • Updating the Online Chapter 24, C++11 and C++14 Additional Topics, with discussions of regular expressions, shared_ptr and weak_ptr smart pointers, move semantics, multithreading, tuples, decltype, constexpr and more.
Access Code info.

To get the most out of your eBook you need to download the VitalSource Bookshelf software. This software is free to download and use. Click here to view the VitalSource Bookshelf system requirements.

Download Information: Once purchased, you can view and/or download your eBook instantly, either via the download link which you will receive as soon as you complete your online order or by viewing the download link against the order in the My Account area of this website.

Please note: eBooks are available for download immediately and cannot be returned once purchased.