Senior Vice President Courseware Portfolio Management: Marcia J. Horton
Director, Portfolio Management: Engineering, Computer Science & Global Editions: Julian Partridge
Portfolio Manager: Matt Goldstein
Portfolio Management Assistant: Kristy Alaura
Field Marketing Manager: Demetrius Hall
Product Marketing Manager: Yvonne Vannatta
Managing Producer, ECS and Math: Scott Disanno
Content Producer: Sandra L. Rodriguez
Composition: iEnergizer Aptara®, Ltd.
Cover Designer: Joyce Wells
Cover Photo: kavram/Shutterstock

Copyright © 2018, 2015, 2012, 2009, 2007 Pearson Education, Inc. Hoboken, NJ 07030. All rights reserved. Manufactured in the United States of America. This publication is protected by copyright and permissions should be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise. For information regarding permissions, request forms and the appropriate contacts within the Pearson Education Global Rights & Permissions department, please visit www.pearsonhighered.com/permissions/.

Many of the designations by manufacturers and seller to distinguish their products are claimed as trademarks. Where those designations appear in this book, and the publisher was aware of a trademark claim, the designations have been printed in initial caps or all caps.

The author and publisher of this book have used their best efforts in preparing this book. These efforts include the development, research, and testing of theories and programs to determine their effectiveness. The author and publisher make no warranty of any kind, expressed or implied, with regard to these programs or the documentation contained in this book. The author and publisher shall not be liable in any event for incidental or consequential damages with, or arising out of, the furnishing, performance, or use of these programs.

  • Pearson Education Ltd., London

  • Pearson Education Singapore, Pte. Ltd.

  • Pearson Education Canada, Inc.

  • Pearson Education Japan

  • Pearson Education Australia PTY, Ltd.

  • Pearson Education North Asia, Ltd., Hong Kong

  • Pearson Education de Mexico, S.A. de C.V.

  • Pearson Education Malaysia, Pte. Ltd.

  • Pearson Education, Inc., Hoboken

Library of Congress Cataloging-in-Publication Data

Names: Savitch, Walter J., author. | Mock, Kenrick, author.

Title: Problem solving with C++ / Walter Savitch, University of California, San Diego; contributor, Kenrick Mock, University of Alaska, Anchorage.

Description: Pearson, 2017. | Includes index.

Identifiers: LCCN 2016057090

Subjects: LCSH: C++ (Computer program language) | Problem solving.

Classification: LCC QA76.73.C153 S29 2017 | DDC 005.13/3—dc23 LC record available at https://lccn.loc.gov/2016057090

1 17

ISBN 10:   0-13-444828-6

ISBN 13: 978-0-13-444828-2