text.skipToContent text.skipToNavigation

C++ Primer, 5th edition

  • Stanley B. Lippman
  • Josée Lajoie
  • Barbara E. Moo

Published by Addison-Wesley Professional (August 6th 2012) - Copyright © 2013

5th edition

Chosen format
View all
C++ Primer

ISBN-13: 9780133053067

Includes: Unassigned

This product is not available in your country

What's included

  • Unassigned

Overview

Table of contents

Preface        xxiii

Chapter 1: Getting Started        1

1.1 Writing a Simple C++ Program   2

1.2 A First Look at Input/Output   5

1.3 A Word About Comments   9

1.4 Flow of Control   11

1.5 Introducing Classes   19

1.6 The Bookstore Program   24

Chapter Summary   26

Defined Terms   26

 

Part I: The Basics        29

Chapter 2: Variables and Basic Types        31

2.1 Primitive Built-in Types   32

2.2 Variables   41

2.3 Compound Types   50

2.4 const Qualifier   59

2.5 Dealing with Types   67

2.6 Defining Our Own  Data Structures   72

Chapter Summary   78

Defined Terms    78

 

Chapter 3: Strings, Vectors, and Arrays        81

3.1 Namespace using Declarations   82

3.2 Library string Type   84

3.3 Library vector Type   96

3.4 Introducing Iterators    106

3.5 Arrays   113

3.6 Multidimensional Arrays   125

Chapter Summary   131

Defined Terms   131

 

Chapter 4: Expressions        133

4.1 Fundamentals    134

4.2 Arithmetic Operators   139

4.3 Logical and Relational Operators   141

4.4 Assignment Operators   144

4.5 Increment and Decrement Operators   147

4.6 The Member Access Operators   150

4.7 The Conditional Operator   151

4.8 The Bitwise Operators   152

4.9 The sizeof Operator   156

4.10 Comma Operator    157

4.11 Type Conversions   159

4.12 Operator Precedence Table   166

Chapter Summary   168

Defined Terms   168

 

Chapter 5: Statements        171

5.1 Simple Statements   172

5.2 Statement Scope   174

5.3 Conditional Statements    174

5.4 Iterative Statements   183

5.5 Jump Statements   190

5.6 try Blocks and Exception Handling   193

Chapter Summary   199

Defined Terms   199

 

Chapter 6: Functions&

For teachers

All the material you need to teach your courses.

Discover teaching material