C++ for Programmers

by ;
  • ISBN13:


  • ISBN10:


  • Edition: 1st
  • Format: Paperback
  • Copyright: 2009-01-23
  • Publisher: Prentice Hall
  • View Upgraded Edition
  • Purchase Benefits
  • Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $59.99 Save up to $9.00
  • Buy New
    Add to Cart Free Shipping


Supplemental Materials

What is included with this book?

  • The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.
  • The eBook copy of this book is not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.


Written in the Deitels' proven style, this comprehensive guide to learning C++ is now available in a special edition for professionals!- A comprehensive tutorial to the C++ programming language, for programmers who are new to C++ and to object-oriented programming.- Uses the Deitels' signature 'live code' style, where every programming concept is explored in the context of a complete working program, not a code fragment.- Covers everything from the basics to advanced topics such as the Boost libraries. This book is a comprehensive introduction to the C++ programming language. It is written for programmers who are new to C++ and new to object-oriented programming, but who have experience with another language, such as C or Perl. It is written in the Deitel's signature 'Live Code' style, where every programming concept is explored in the context of a complete working program, not a code fragment. All code is carefully documented, and output screens appear in the text right next to the code listings. The book contains a remarkably rich library of sample code. Deitel books are known for their completeness, and this one does not disappoint - this book contains hundreds of example C++ programs with thousands of lines of C++ source code. It covers the Boost library, which will be a key component of the next C++ standard.

Author Biography

Paul J. Deitel and Dr. Harvey M. Deitel are the founders of Deitel & Associates, Inc., the internationally recognized programming languages authoring, corporate-training and Internet business development organization. The Deitels have written many international best-selling programming-language professional books and textbooks that millions of people worldwide have used to master C++, C, Java™, C#, Visual Basic®, Visual C++® XML, Perl, Python, and Internet and web programming.  

Table of Contents

Prefacep. xxi
Before You Beginp. xli
Introductionp. 1
Introductionp. 2
History of C and C++p. 3
C++ Standard Libraryp. 4
Key Software Trend: Object Technologyp. 5
Typical C++ Development Environmentp. 6
Notes About C++ and C++ for Programmersp. 8
Test-Driving a C++ Applicationp. 9
Software Technologiesp. 15
Future of C++: Open Source Boost Libraries, TR1 and C++0xp. 16
Software Engineering Case Study: Introduction to Object Technology and the UMLp. 16
Wrap-Upp. 21
Web Resourcesp. 22
Introduction to C++ Programmingp. 24
Introductionp. 25
First Program in C++: Printing a Line of Textp. 25
Modifying Our First C++ Programp. 28
Another C++ Program: Adding Integersp. 29
Arithmeticp. 33
Decision Making: Equality and Relational Operatorsp. 35
(Optional) Software Engineering Case Study: Examining the ATM Requirements Specificationp. 38
Wrap-Upp. 47
Introduction to Classes and Objectsp. 48
Introductionp. 49
Classes, Objects, Member Functions and Data Membersp. 49
Overview of the Chapter Examplesp. 51
Defining a Class with a Member Functionp. 52
Defining a Member Function with a Parameterp. 55
Data Members, set Functions and get Functionsp. 58
Initializing Objects with Constructorsp. 65
Placing a Class in a Separate File for Reusabilityp. 69
Separating Interface from Implementationp. 73
Validating Data with set Functionsp. 79
(Optional) Software Engineering Case Study: Identifying the Classes in the ATM Requirements Specificationp. 84
Wrap-Upp. 92
Control Statements: Part 1p. 93
Introductionp. 94
Control Structuresp. 94
if Selection Statementp. 97
ifhellip;else Double-Selection Statementp. 98
while Repetition Statementp. 102
Counter-Controlled Repetitionp. 104
Sentinel-Controlled Repetitionp. 108
Nested Control Statementsp. 115
Assignment Operatorsp. 118
Increment and Decrement Operatorsp. 119
(Optional) Software Engineering Case Study: Identifying Class Attributes in the ATM Systemp. 122
Wrap-Upp. 127
Control Statements: Part 2p. 128
Introductionp. 129
Essentials of Counter-Controlled Repetitionp. 129
For Repetition Statementp. 131
Examples Using the for Statementp. 134
Dohellip;while Repetition Statementp. 139
Switch Multiple-Selection Statementp. 141
Break and continue Statementsp. 151
Logical Operatorsp. 153
Confusing the Equality (==) and Assignment (=) Operatorsp. 158
(Optional) Software Engineering Case Study: Identifying Objectsrsquo; States and Activities in the ATM Systemp. 159
Wrap-Upp. 163
Functions and an Introduction to Recursionp. 165
Introductionp. 166
Program Components in C++p. 167
Math Library Functionsp. 167
Function Definitions with Multiple Parametersp. 168
Function Prototypes and Argument Coercionp. 173
Table of Contents provided by Publisher. All Rights Reserved.


Preface Preface"The chief merit of language is clearness ..." GalenWelcome to C++ for Programmers ! At Deitel & Associates, we write programming language professional books and textbooks for publication by Prentice Hall, deliver programming languages corporate training courses at organizations worldwide and develop Internet businesses. This book is intended for programmers who do not yet know C++, and may or may not know object-oriented programming. Features of C++ for ProgrammersThe Tour of the Book section of this Preface will give you a sense of C++ for Programmers ' coverage of C++ and object-oriented programming. Here's some key features of the book: Early Classes and Objects Approach. We present object-oriented programming, where appropriate, from the start and throughout the text. Integrated Case Studies. We develop the GradeBook class in Chapters 37, the Time class in several sections of Chapters 910, the Employee class in Chapters 1213, and the optional OOD/UML ATM case study in Chapters 1 7, 9, 13 and Appendix E. Unified Modeling Language 2 (UML 2). The Unified Modeling Language (UML) has become the preferred graphical modeling language for designers of object-oriented systems. We use UML class diagrams to visually represent classes and their inheritance relationships, and we use UML activity diagrams to demonstrate the flow of control in each of C++'s control statements. We emphasize the UML in the optional OOD/UML ATM case study Optional OOD/UML ATM Case Study. We introduce a concise subset of the UML 2, then guide you through a first design experience intended for the novice object-oriented designer/programmer. The case study was reviewed by a distinguished team of OOD/UML industry professionals and academics. The case study is not an exercise; rather, it's a fully developed end-to-end learning experience that concludes with a detailed walkthrough of the complete 877-line C++ code implementation. We take a detailed tour of the nine sections of this case study later in the Preface. Function Call Stack Explanation. In Chapter 6, we provide a detailed discussion (with illustrations) of the function call stack and activation records to explain how C++ is able to keep track of which function is currently executing, how automatic variables of functions are maintained in memory and how a function knows where to return after it completes execution. Class string. We use class string instead of C-like pointer-based char * strings for most string manipulations throughout the book. We include discussions of char * strings in Chapters 8, 10, 11 and 19 to give you practice with pointer manipulations, to illustrate dynamic memory allocation with new and delete, to build our own String class, and to prepare you for working with char * strings in C and C++ legacy code. Class Template vector. We use class template vector instead of C-like pointer-based array manipulations throughout the book. However, we begin by discussing C-like pointer-based arrays in Chapter 7 to prepare you for working with C and C++ legacy code and to use as a basis for building our own customized Array class in Chapter 1

Rewards Program

Write a Review