Absolute C++, 6th edition
By Walter Savitch, Kenrick Mock
IM
PR
ES
SI
VE
G
R
AD
ES
, Table of Content
Chapter 1 C++ BASICS 1
Chapter 2 FLOW OF CONTROL 45
Chapter 3 FUNCTION BASICS 99
IM
Chapter 4 PARAMETERS AND OVERLOADING 145
Chapter 5 ARRAYS 185
Chapter 6 STRUCTURES AND CLASSES 239
PR
Chapter 7 CONSTRUCTORS AND OTHER TOOLS 275
Chapter 8 OPERATOR OVERLOADING, FRIENDS, AND REFERENCES 321
Chapter 9 STRINGS 367
ES
Chapter 10 POINTERS AND DYNAMIC ARRAYS 419
Chapter 11 SEPARATE COMPILATION AND NAMESPACES 471
Chapter 12 STREAMS AND FILE I/O 515
Chapter 13 RECURSION 571
SI
Chapter 14 INHERITANCE 613
Chapter 15 POLYMORPHISM AND VIRTUAL FUNCTIONS 661
VE
Chapter 16 TEMPLATES 693
Chapter 17 LINKED DATA STRUCTURES 731
Chapter 18 EXCEPTION HANDLING 825
G
Chapter 19 STANDARD TEMPLATE LIBRARY 857
Chapter 20 PATTERNS AND UML (online at www.pearsonhighered.com/savitch)
R
AD
ES
, KJHGFDSA
Chapter 1
C++ Basics
Key Terms
IM
functions
program
int main()
return 0
PR
identifier
case-sensitive
keyword or reserved word
declare
floating-point number
fixed width integer types
ES
auto
unsigned
assignment statement
uninitialized variable
assigning int values to double variables
SI
mixing types
integers and Booleans
literal constant
scientific notation or floating-point notation
VE
quotes
C-string
string
escape sequence
const
modifier
G
declared constant
mixing types
precedence rules
R
integer division
the % operator
negative integers in division
AD
type cast
type coercion
increment operator
decrement operator
v++ versus ++v
cout
ES
expression in a cout statement
spaces in output
newline character
deciding between \n and endl
format for double values
kjhgfdsa
, KJHGFDSA
magic formula
outputting money amounts
cerr
cin
IM
how cin works
separate numbers with spaces
when to comment
#include,
preprocessor
PR
namespace
using namespace
Brief Outline
1.1 Introduction to C++
ES
Origins of the C++ Language
C++ and Object-Oriented Programming
The Character of C++
C++ Terminology
A Sample C++ Program
1.2 Variables, Expressions, and Assignment Statements
SI
Identifiers
Variables
Assignment Statements
VE
More Assignment Statements
Assignment Compatibility
Literals
Escape Sequences
Naming Constants
Introduction to the string class
G
Arithmetic Operators and Expressions
Integer and Floating-Point Division
Type Casting
R
Increment and Decrement Operators
1.3 Console Input/Output
Output Using cout
AD
New Lines in Output
Formatting for Numbers with a Decimal Point
Output with cerr
Input Using cin
1.4 Program Style
Comments
ES
1.5 Libraries and Namespaces
Libraries and include Directives
Namespaces
kjhgfdsa