C++ How to Program: Third Edition
Instructor’s Manual Contents
Preface iii
Chapter 1 Introduction to Computers and C++ Programming: Solutions 1
Chapter 2 Control Structures: Solutions 15
Chapter 3 Functions: Solutions 66
Chapter 4 Arrays Solutions: 120
Chapter 5 Pointers and Strings: Solut...
Thank you for considering and/or adopting our text C++ How to Program: Third Edition. If you have not read
the preface to C++ How to Program: Third Edition, please do so. The preface contains a careful walkthrough of
the book’s key features, including our new Unified Modeling Language™ (UML™) case study, which carefully
introduces the reader to the UML and object-oriented design (OOD). Students are presented with a detailed prob-
lem statement and guided through a simplified, UML-based object-oriented design process. The complete 1000-
line C++ program solution for the case study is presented in the book and provided on the CD-ROM in the back
of the textbook.
We have worked hard to produce a textbook and ancillaries that we hope you and your students will find valu-
able. The following ancillary resources are available:
• C++ How to Program: Third Edition’s 250 program examples are included on the CD-ROM in the back
of the textbook. This helps instructors prepare lectures faster and helps students master C++. The examples
are also available for download at www.deitel.com. When extracting the source code from the ZIP file,
you must use a ZIP-file reader such as WinZip (www.winzip.com) or PKZIP (www.pkware.com)
that understands directories. The file should be extracted into a separate directory (e.g.,
cpphtp3e_examples).
• Microsoft Visual C++ 6 Introductory Edition software is provided on the textbook’s CD-ROM. This soft-
ware allows students to edit, compile and debug C++ programs. We have provided at no charge a short Vi-
sual C++ 6 tutorial (in Adobe PDF format) on our Web site (www.deitel.com).
• This C++ How to Program: Third Edition Instructor’s Manual on CD contains answers to most of the ex-
ercises in the textbook. The programs are separated into directories by chapter and exercise number.
• The optional C++ Multimedia Cyber Classroom: Third Edition is an interactive multimedia CD version of
the book for Windows. Its features include audio walkthroughs of programs, section review questions (which
are available only on the C++ Multimedia Cyber Classroom: Third Edition), a text-search engine, the ability
to execute example programs, and more. The Cyber Classroom helps students get more out of their courses.
The Cyber Classroom is also useful for students who miss a lecture and have to catch up quickly. The Cyber
Classroom is available as a stand-alone product (see the last few pages of the textbook for the ISBN number)
or bundled with the textbook (at a discount) in a product called The Complete C++ Training Course: Third
Edition (ISBN# 0-13-089563-6).
• Companion Web site (www.prenhall.com/deitel) provides instructor and student resources. In-
structor resources include textbook appendices (e.g., Appendix D, "C++ Internet and Web Resources") and
a syllabus manager for lesson planning. Student resources include chapter objectives, true/false questions,
chapter highlights, reference materials and a message board.
• Customizable Powerpoint Instructor Lecture Notes, with many complete features including source code,
and key discussion points for each program and major illustration. These lecture notes are available for in-
structors and students at no charge at our Web site www.deitel.com.
• Lab Manual (available Spring 2001)—a for-sale item containing closed-lab sessions.
We would sincerely appreciate your questions, comments, criticisms and corrections addressed to us at:
deitel@deitel.com
We will respond immediately. Please read the latest copy of the Deitel Buzz (published every April and
November) for information on forthcoming Deitel publications, ancillaries, product options and ordering infor-
mation. To receive the Deitel Buzz, please contact Jennie Burger ( jennie_burger@prenhall.com).
Watch our Deitel & Associates, Inc. Web site (www.deitel.com ) and our Prentice Hall Web site
(www.prenhall.com/deitel ) for the latest publication updates.
We would like to thank the extraordinary team of publishing professionals at Prentice Hall who made C++
How to Program: Third Edition and its ancillaries possible. Our Computer Science editor, Petra Recter, worked
closely with us to ensure the timely availability and professional quality of these ancillaries.
We would also like to thank two of our student interns—Aftab Bukhari (a Computer Science major at Boston
University) and Jason Rosenfeld (a Computer Science major at Northwestern University) for their assistance in
preparing this Instructor’s Manual.
Harvey M. Deitel
Paul J. Deitel
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller THEEXCELLENCELIBRARY. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $33.99. You're not tied to anything after your purchase.