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