search for books and compare prices
Tables of Contents for A Guide to Programming in C++
Chapter/Section Title
Page #
Page Count
An Introduction to Computers
What is a Computer?
1
1
The History of Computers
Ancient Counting Machines
2
1
Arabic Numerals
2
1
The Pascaline
3
1
The Stepped Reckoner
3
1
The Punched Card
4
1
Babbage's Difference and Analytical Engines
4
1
The Electronic Tabulating Machine
5
1
The Mark I
6
1
ENIAC: The First Electronic Computer
7
1
The Stored Program Computer
8
1
The Transisitor
9
1
Integrated Circuits
9
1
Mainframes
10
1
The Modern Computer
The Microprocessor and the Microcomputer
11
1
The Personal Computer
11
1
Computer Architecture
12
2
Auxiliary Memory
14
1
Number Systems
15
1
Storing Data in Memory
16
1
Operating Systems
17
1
Programming Languages
18
1
Computer Issues
The Ethical Responsibilities of the Programmer
19
1
The Social and Ethical Consequences of Computers
20
1
The Right to Privacy
21
1
Protecting Computer Software and Data
22
1
Computer Organizations
23
 
Chapter Summary
23
1
Vocabulary
24
 
Introducing C++
The C++ Language
1
1
About this text
1
1
Why learn to program?
2
1
A C++ Program
2
1
C++ Program Structure
3
1
Running a C++ Program
4
1
Syntax Errors and Warnings
4
1
Variations on cout
5
1
Displaying Special Characters
6
2
Using Help
8
1
Program Style
8
 
Chapter Summary
9
1
Vocabulary
10
1
C++
11
1
Exercises
12
 
Variables and Constants
Using Variables
1
2
Obtaining a Value from the User
3
1
Using Named Constants
4
1
Choosing Identifiers
5
1
BuilIn Data Types
5
2
Variable Definitions
7
1
Expressions and Operators
8
1
The string Library
9
2
The ignore() Function
11
1
Output Formatting
12
2
Choosing wisely: int vs. long vs. double; const vs. variable
14
 
Case Study
15
4
Chapter Summary
19
1
Vocabulary
20
1
C++
21
1
Exercises
22
 
Controlling Program Flow
The if Statement
1
1
if Pitfalls
2
2
The if-else Statement
4
1
Compound Statements
4
1
Nested if Statements
5
1
The else-if Ladder
6
1
Programming Style: else-if Ladder vs. Sequential ifs
7
1
Logical Operators
8
2
Looping: The do-while Statement
10
1
Algorithms
11
1
Looping: The while Statement
12
1
Infinite Loops
13
1
Debugging a Program
13
1
Counting and Summing
14
2
++ and +=
16
1
Looping: The for Statement
17
1
-- and -=
18
1
The bool Library
18
1
The break Statement
19
1
Generating Random Numbers
19
1
The conio Library
20
 
Case Study
22
2
Chapter Summary
24
2
Vocabulary
26
1
C++
27
1
Exercises
28
 
Functions
The Functions
1
2
Function Parameters
3
2
Function Overloading
5
1
Default Parameters
6
1
The return Statement
7
2
Reference Parameters
9
3
Methodology for Building Functions
12
1
Documenting Functions
13
2
Building a Library
15
3
Top-Down Design
18
1
Prototype-Style Program Organization
18
 
Case Study
20
8
Chapter Summary
28
1
Vocabulary
29
1
C++
30
1
Exercises
31
 
Classes and Objects
Classes and Objects
1
1
Using Classes
2
1
The string Class
3
2
The ios Class
5
1
Constructors
5
1
Object Parameters
6
1
The PegClass Class
6
2
The Tower of Hanoi Puzzle
8
2
The TopListClass Class
10
 
Case Study
13
2
Chapter Summary
15
1
Vocabulary
16
1
C++
16
2
Exercises
18
 
Mathematics, Recursion, and enum
The math Library
1
1
Trigonometric Functions
2
1
Logarithmic and Exponential Functions
3
1
Other math.h Functions
4
1
Precision of double Values
4
1
Rounding double Values
5
1
Recursion
6
1
More on Recursion
7
1
The Tower of Hanoi
8
3
Character Data Storage
11
1
Integer to Character Equivalents
12
1
Enumerated Types
13
1
The switch Statement
14
 
Case Study
15
9
Chapter Summary
24
1
Vocabulary
24
1
C++
25
1
Exercises
26
 
Arrays and structs
The Array Type
1
1
The vector Library
1
2
Range Errors
3
1
The vector Member Functions
4
1
vector Parameters
5
1
vector Constructors
6
1
Searching an Array
7
1
Dynamic Arrays
7
1
Using typedef
8
1
Strings as Arrays
9
2
Arrays with Meaningful Indexes
11
3
The matrix Library
14
4
The struct Type
18
2
Complex structs
20
1
struct Constructors
20
1
const Data Members
21
1
Arrays of structs
22
4
Three-Dimensional Arrays
26
 
Case Study
27
6
Chapter Summary
33
1
Vocabulary
34
1
C++
35
1
Exercises
36
 
Streams and Files
Streams
1
1
The ifstream Class
1
3
Reading Numeric Data
4
2
Reading Character Data
6
2
The eof() and ignore() Member Functions
8
1
The ofstream Class
8
3
The open() and close() Member Functions
11
1
User-Specified File Names
11
1
Stream Object Parameters
11
2
The remove() and rename() Functions
13
1
Returning Stream Objects References
14
1
Random Access Files
14
2
The fstream Class
16
1
The tellg() and tellp() Functions
17
 
Case Study
17
10
Chapter Summary
27
1
Vocabulary
28
1
C++
28
1
Exercises
29
 
Building Classes
The C++ Class
1
1
The AccountClass Class
1
3
Defining Member Functions
4
1
The account Library
5
3
Default Constructors
8
3
Building Utility Classes
11
2
Overloading Operators
13
1
Overloading Stream Operators
14
2
Compiler Directives
16
1
The date Library
17
3
Special Member Functions
20
1
The Copy Constructor and Assignment Operator Functions
21
1
Object-Oriented Programming
22
 
Case Study
23
10
Chapter Summary
33
1
Vocabulary
34
1
C++
35
1
Exercises
36
 
Graphics and Event-Driven Programming
Event-Driven Programming
1
1
Object-Oriented Programming
1
1
Graphic Functions
2
2
Controlling Colors and Line Thickness
4
2
Floodfill
6
1
Text Functions
7
1
Text Formatting
8
1
Screen Sizes
8
1
Generalizing Object Locations
9
3
Handling Mouse Click Events
12
2
Hit Detection
14
5
Message Boxes and PostQuitMessage()
19
 
Case Study
21
7
Chapter Summary
28
1
Vocabulary
29
1
C++
29
1
Exercises
30
 
Advanced Algorithms and Recursion
Selection Sort
1
1
Timing Code
3
1
Writing Generic Code
5
1
Merge Sort
5
1
Binary Search
9
1
Depth-First Searching
12
1
Chapter Summary
17
1
Vocabulary
17
1
Exercises
18
1
Data Structures
The Stack Data Structure
1
1
The stack Library
2
2
The Queue Data Structure
4
1
The queue Library
5
2
Implementing Stacks and Queues
7
1
Linked Lists
8
1
Dynamic Memory Pointers
9
1
Building Linked Lists in Dynamic Memory
10
4
Avoiding Dynamic Memory Bugs
14
1
Pointer Notation
15
1
Binary Search Trees
16
1
Implementing Binary Search Trees
17
4
Beyond this Book
21
 
Chapter Summary
21
1
Vocabulary
22
1
C++
23
1
Exercises
24
 
Appendix A - Turbo C++
A.1 Entering a Program in Turbo C++
A-1
 
A.2 Compiling
A-3
 
A.3 Errors
A-3
 
A.4 More on Using Turbo C++
A-4
 
A.5 Using Help
A-5
 
A.6 Debugging with Turbo C++
A-5
 
A.7 Libraries
A-6
 
Appendix B - Microsoft Visual C++
B.1 Entering a Program in Visual C++
B-1
 
B.2 Compiling
B-3
 
B.3 Errors
B-4
 
B.4 More on Using Visual C++
B-4
 
B.5 Using Help
B-5
 
B.6 Debugging with Visual C++
B-6
 
B.7 Libraries
B-6
 
Appendix C - Keywords in C++
Index
Program Index
I-1
 
Index
I-2