McGraw Hill - CPP Demystified - A Self-Teaching Guide
Table of Contents
BackCover
C++ Demystified
Introduction
Who Should Read this Book
What this Book Covers
How to Read this Book
Special Features
Contacting the Author
Chapter 1: How a C++ Program Works
What Is a Computer Program?
What Is a Programming Language?
Anatomy of a C++ Program
Translating the Code for the Computer
Using an IDE to Create and Run the " Hello World! " Project
Summary
Quiz
Chapter 2: Memory and Data Types
Memory
Data Types
Project: Determining the Size of Data Types
Summary
Quiz
Chapter 3: Variables
Declaring Variables
Assigning Values to Variables
Summary
Quiz
Chapter 4: Arithmetic Operators
Arithmetic Operators
The Change Machine Project
Summary
Quiz
Chapter 5: Making Decisions: if and switch Statements
Relational Operators
Flowcharting
The if Statement
The if / else Statement
The if /else if /else Statement
The switch Statement
Summary
Quiz
Chapter 6: Nested if Statements and Logical Operators
Nested if Statements
Logical Operators
Using the switch Statement with Logical Operators
Summary
Quiz
Chapter 7: The For Loop
Increment and Decrement Operators
The For Loop
Summary
Quiz
Chapter 8: While and Do While Loops
The While Loop
The Do While Loop
Summary
Quiz
Chapter 9: Functions
Defining and Calling a Function
Variable Scope and Lifetime
Sending Information to a Function
Returning a Value from a Function
Summary
Quiz
Chapter 10: Arrays
Declaring an Array
Initialization
Assigning and Displaying Array Values
Passing Arrays as Function Arguments
Summary
Quiz
Chapter 11: What's the Address? Pointers
Declaring a Pointer
Assigning a Value to a Pointer
Indirection Operator and Dereferencing
The Pointer as a Variable or a Constant
Pointer Arithmetic
Pointers as Function Arguments
Dynamic Memory Allocation
Returning Pointers from Functions
Summary
Quiz
Chapter 12: Character, C-String, and C++ String Class Functions
Reading a Character
Useful Character Functions
Useful C-String and C++ String Functions
Summary
Quiz
Chapter 13: Persistent Data: File Input and Output
Text vs. Binary Files
The fstream Standard Library
The File Access Life Cycle
Opening a File
Closing a File
Writing to a File
Reading from a File
File Stream Objects as Function Arguments
Summary
Quiz
Chapter 14: The Road Ahead: Structures and Classes
Your Reasons for Reading This Book?
Object-Oriented Programming
Structures
Classes
Summary
Quiz
Final Exam
Answers to Quizzes and Final Exam
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter 12
Chapter 13
Chapter 14
Final Exam
Index
Index_A
Index_B
Index_C
Index_D
Index_E
Index_F
Index_G
Index_H
Index_I
Index_K
Index_L
Index_M
Index_N
Index_O
Index_P
Index_R
Index_S
Index_T
Index_U
Index_V
Index_W
List of Figures
List of Tables