E-Book Overview
Now featuring new Video Notes the Seventh Edition of Problem Solving with C++ continues to be the most widely used textbook by students and instructors in the introduction to programming and C++ language course. Through each edition, hundreds and thousands of students have valued Walt Savitch’s approach to programming, which emphasizes active reading through the use of well-placed examples and self-test examples. Created for the beginner, this book focuses on cultivating strong problem-solving and programming techniques while introducing students to the C++ programming language.
E-Book Content
LOCATION OF VIDEO NOTES IN THE TEXT Chapter 1
Compiling and Running a C++ Program, p. 27 Solution to Programming Project 1.6, p. 37
Chapter 2
Precedence and Arithmetic Operators, p. 71 Common Bugs with = and ==, p. 81 Solution to Programming Project 2.13, p. 107
Chapter 3
switch Statement Example, p. 132 Nested Loop Example, p. 161 Solution to Programming Project 3.13, p. 178
Chapter 4
Programmer-Defined Function Example, p. 201 Walkthrough of Functions and Local Variables, p. 223 Solution to Programming Project 4.7, p. 245
Chapter 5
Call by Reference and Call by Value, p. 268 Debugging, p. 287 Solution to Programming Project 5.9, p. 299
Chapter 6
Solution to Programming Project 6.18, p. 371
Chapter 7
Array Walkthrough, p. 381 Passing Arrays to Functions, p. 388 Selection Sort Walkthrough, p. 415 Solution to Programming Project 7.3, p. 434
Chapter 8
Example using cin and getline with the string class, p. 472 Solution to Programming Project 8.1, p. 491
Chapter 9
Solution to Programming Project 9.6, p. 526
Chapter 10
Class Scope, Public and Private Members, p. 553 Separate Interface and Implementation, p. 579 Solution to Programming Project 10.3, p. 604
Chapter 11
Arrays of Classes using Dynamic Arrays, p. 663 Overloading = and == for a Class, p. 672 Solution to Programming Project 11.15, p. 693
Chapter 12
Solution to Programming Project 12.3, p. 730
Chapter 13
Solution to Programming Project 13.6, p. 778 Solution to Programming Project 13.9, p. 780
Chapter 14
Recursion and the Stack, p. 794 Solution to Programming Project 14.7, p. 821
Chapter 15
Inheritance Example, p. 848 Solution to Programming Project 15.12, p. 879
Chapter 16
The STL exception Class, p. 906 Solution to Programming Project 16.3, p. 909
Chapter 17
Solution to Programming Project 17.10, p. 942
Chapter 18
Solution to Programming Project 18.7, p. 996
PROBLEM SOLVING WITH
S EVENTH E DITION
This page intentionally left blank
PROBLEM SOLVING WITH
S EVENTH E DITION
WALTER SAVITCH U NIVERSITY
OF
C ALIFORNIA , S AN D IEGO
CONTRIBUTOR
KENRICK MOCK U NIVERSITY
OF
A LASKA , A NCHORAGE
Boston San Francisco New York London Toronto Sydney Tokyo Singapore Madrid Mexico City Munich Paris Cape Town Hong Kong Montreal
Executive Editor Acquisitions Editor Editorial Assistant Senior Production Supervisor Marketing Manager Production Services, Composition and Art Copy Editor, Proofreader, and Indexer Text Design Cover Design Media Producer Senior Manufacturing Buyer Cover Image
Michael Hirsch Matt Goldstein Sarah Milmore Marilyn Lloyd Christopher Kelly
Stepping stones in pond, Japan
Printer
Digital Vision Ltd./Super Stock Courier Westford
Nesbitt Graphics, Inc. Rose Kernan Sandra Rigney Barbara Atkinson Bethany Tidd Carol Melville
Access the latest information about Addison-Wesley Computing titles from our Worl