EU
SS
OI
NN
CO
ED
M
IA_
UV
ST
, TABLE OF CONTENTS
Instructor's Solutions Manual: Absolute C++, 6th Edition
ST
Author: Walter Savitch
UV
Chapter 1. C++ Basics
Chapter 2. Flow of Control
Chapter 3. Function Basics
I
Chapter 4. Parameters and Overloading
A_
Chapter 5. Arrays
Chapter 6. Structures and Classes
Chapter 7. Constructors and Other Tools
M
Chapter 8. Operator Overloading, Friends, and References
Chapter 9. Strings
ED
Chapter 10. Pointers and Dynamic Arrays
Chapter 11. Separate Compilation and Namespaces
CO
Chapter 12. Streams and File I/O
Chapter 13. Recursion
Chapter 14. Inheritance
NN
Chapter 15. Polymorphism and Virtual Functions
Chapter 16. Templates
Chapter 17. Linked Data Structures
Chapter 18. Exception Handling
OI
Chapter 19. Standard Template Library
Chapter 20. Patterns and UML
SS
EU
R?
, Savitch, Absolute C++ 6/e: Chapter 1, Instructor’s Manual
Chapter 1
C++ Basics
ST
Key Terms
functions
program
UV
int main()
return 0
identifier
case-sensitive
I
keyword or reserved word
A_
declare
floating-point number
fixed width integer types
auto
M
unsigned
assignment statement
uninitialized variable
ED
assigning int values to double variables
mixing types
integers and Booleans
literal constant
CO
scientific notation or floating-point notation
quotes
C-string
string
escape sequence
NN
const
modifier
declared constant
mixing types
OI
precedence rules
integer division
the % operator
negative integers in division
SS
type cast
type coercion
increment operator
EU
decrement operator
v++ versus ++v
cout
expression in a cout statement
R?
spaces in output
newline character
deciding between \n and endl
format for double values
Copyright © 2016 Pearson Education Addison-Wesley. All rights reserved.
, Savitch, Absolute C++ 6/e: Chapter 1, Instructor’s Manual
magic formula
outputting money amounts
cerr
ST
cin
how cin works
separate numbers with spaces
when to comment
UV
#include,
preprocessor
namespace
using namespace
I A_
Brief Outline
1.1 Introduction to C++
Origins of the C++ Language
C++ and Object-Oriented Programming
M
The Character of C++
C++ Terminology
A Sample C++ Program
ED
1.2 Variables, Expressions, and Assignment Statements
Identifiers
Variables
Assignment Statements
CO
More Assignment Statements
Assignment Compatibility
Literals
Escape Sequences
NN
Naming Constants
Introduction to the string class
Arithmetic Operators and Expressions
Integer and Floating-Point Division
Type Casting
OI
Increment and Decrement Operators
1.3 Console Input/Output
Output Using cout
SS
New Lines in Output
Formatting for Numbers with a Decimal Point
Output with cerr
Input Using cin
EU
1.4 Program Style
Comments
1.5 Libraries and Namespaces
Libraries and include Directives
R?
Namespaces
Copyright © 2016 Pearson Education Addison-Wesley. All rights reserved.