C++ Primer Answer Book / Edition 1

Paperback (Print)
Used and New from Other Sellers
Used and New from Other Sellers
from $1.99
Usually ships in 1-2 business days
(Save 93%)
Other sellers (Paperback)
  • All (18) from $1.99   
  • New (6) from $21.67   
  • Used (12) from $1.99   

Overview

Clearly, the best way to learn C++--not just its language constructs, but how the language is actually put to use--is through problem solving and practice. Accordingly, the best-selling C++ Primer, Third Edition , by Stanley Lippman and Josée Lajoie, presents dozens of open-ended exercises to help C++ programmers gain practical experience and acquire a deeper understanding of the language's intricacies.

But what do you do when the answer to one of these exercises baffles you? Now you can turn to the C++ Primer Answer Book. Intended as a companion to the C++ Primer, the Answer Book provides the solutions to the exercises, allowing you to learn how the masters solve critical programming challenges. With the Answer Book in hand, you will have the technical explanations, practical techniques, and actual code to end your frustration and help you work through solutions.

This book is completely up-to-date, covering the final ANSI/ISO C++ Standard, extensions, standard library, and the STL. The exercises and corresponding solutions address a broad range of C++ topics, including

  • Data types
  • Abstract container types
  • Generic algorithms
  • Class templates
  • Multiple and virtual inheritance
  • iostream library, and more

C++ programmers who use the C++ Primer Answer Book in conjunction with the C++ Primer will better understand the concepts of C++ by working through the exercises, and will gain new perspectives through reviewing these solutions.

0201309939B04062001

Read More Show Less

Editorial Reviews

Booknews
A companion to the C++ Primer, Third Edition. Provides answers to the exercises in the other text, which cover areas such as data types, abstract container types, generic algorithms, class templates, multiple inheritance, and an iostream library. Annotation c. by Book News, Inc., Portland, Or.
Read More Show Less

Product Details

  • ISBN-13: 9780201309935
  • Publisher: Addison-Wesley
  • Publication date: 12/15/1998
  • Edition description: New Edition
  • Edition number: 1
  • Pages: 448
  • Product dimensions: 7.30 (w) x 9.10 (h) x 1.00 (d)

Meet the Author

Clovis L. Tondo is President of T&T TechWorks, Inc., a company that provides technical training in C, C++, and UNIX tools to major corporations and produces books for technical publishers. Dr. Tondo is also author of The C Answer Book and coauthor of eight books on C, device drivers, MAKE, and data structures.

Bruce P. Leung is a software engineer with Connected Components Corporation, where he is part of a small team developing a state-of-the-art C++ compiler. He has been involved with the development of various research and industry compilers for the past twelve years. He has also coauthored a data structures textbook with Dr. Tondo.

0201309939AB04062001

Read More Show Less

Read an Excerpt

Preface

C++ has proven to be a popular programming language, and C++ Primer has proven to be just as popular among those wishing to learn the language. Learning a programming language, however, requires more than just reading about the language constructs. You must program, write your own code, and study code written by those who are more experienced with the use of the language.

To this end, Lippman and Lajoie (L&L) have provided exercises throughout C++ Primer to encourage their readers to test their understanding of the material. Our book provides the solutions to those exercises.

C++ Primer Answer Book is intended to be used in conjunction with C++ Primer. We assume that you have read the material in L&L preceding each exercise. We present our solution along with an explanation, but we do not repeat the material found in L&L. Only those concepts and constructs that have already been introduced are used in the solutions.

When the solution involves a complete program, we generally include the entire source code so that each solution stands on its own. All programs have been compiled using Microsoft Visual C++ Version 5.0. In some instances when the compiler did not meet the standard, a workaround was used and an explanation given.

We recommend that you use L&L to learn C++, work the exercises, and study the solutions presented here. We hope C++ Primer Answer Book will aid you in understanding C++ while eliminating the frustration of being stuck without an answer to a problem.

Acknowledgments

Special thanks go to Stan Lippman and Josée Lajoie for having the faith to allow us to write this answer book and for their careful review of the text.

Sean Davey,Steve Edwards, S. Rollins Guild, Cay Horstmann, and Jeffrey Oldham provided many helpful comments on the manuscript.

Clovis thanks George Edmunds, Sam Hsu, Mohammad Ilyas, Mahesh Neelakanta, and Cyril Párkányi for their continued support; Sean Davey for the C++ review, for the LaTeX macros, and for his technical support; Andrew Nathanson for his friendship and software/hardware support; S. Rollins Guild for the C++ review and his friendship; A. Carlos Tondo, Julia Mistrello, and Luiz and Elizabete T. Biavatti for helping our company succeed; and Caren E. Tondo for her love, patience, and sense of humor.

Bruce thanks Andrew Bellezza, Jodi Solomon, and Mary Walstrom for their friendship and encouragement; Zahira Ammarguellat, Luddy Harrison, Sandra Loosemore, and Cotton Seed — one couldn't ask for better co-workers; and Misty and Buddy for their boundless patience.

Last, but certainly not least, we thank the staff at Addison-Wesley. We are especially grateful to our associate editor, Debbie Lafferty, for her patience and knowing when and how hard to push; the production editor, Maureen Willard, for guiding us through the editing, proofs, and final pages; the production manager, John Fuller, for getting the macros approved and improved early in the process; and the freelancer, Diane Freed, for assisting with the production of this book. We appreciate your kind help.

Clovis L. Tondo

Bruce P. Leung

Read More Show Less

Table of Contents

Foreword.

Preface.

1 Getting Started.

2 A Tour of C++.

3 The C++ Data Types.

4 Expressions.

5 Statements.

6 Abstract Container Types.

7 Functions.

8 Scope and Lifetime.

9 Overloaded Functions.

10 Function Templates.

11 Exception Handling.

12 The Generic Algorithms.

13 Classes.

14 Class Initialization, Assignment, and Destruction.

15 Overloaded Operators and User-Defined Conversions.

16 Class Templates.

17 Class Inheritance and Subtyping.

18 Multiple and Virtual Inheritance.

19 Uses of Inheritance in C++.

20 The iostream Library.

Index. 0201309939T04062001

Read More Show Less

Preface

C++ has proven to be a popular programming language, and C++ Primer has proven to be just as popular among those wishing to learn the language. Learning a programming language, however, requires more than just reading about the language constructs. You must program, write your own code, and study code written by those who are more experienced with the use of the language.

To this end, Lippman and Lajoie (L&L) have provided exercises throughout C++ Primer to encourage their readers to test their understanding of the material. Our book provides the solutions to those exercises.

C++ Primer Answer Book is intended to be used in conjunction with C++ Primer. We assume that you have read the material in L&L preceding each exercise. We present our solution along with an explanation, but we do not repeat the material found in L&L. Only those concepts and constructs that have already been introduced are used in the solutions.

When the solution involves a complete program, we generally include the entire source code so that each solution stands on its own. All programs have been compiled using Microsoft Visual C++ Version 5.0. In some instances when the compiler did not meet the standard, a workaround was used and an explanation given.

We recommend that you use L&L to learn C++, work the exercises, and study the solutions presented here. We hope C++ Primer Answer Book will aid you in understanding C++ while eliminating the frustration of being stuck without an answer to a problem.

Acknowledgments

Special thanks go to Stan Lippman and Josée Lajoie for having the faith to allow us to write this answer book and for their careful review of the text.

Sean Davey, Steve Edwards, S. Rollins Guild, Cay Horstmann, and Jeffrey Oldham provided many helpful comments on the manuscript.

Clovis thanks George Edmunds, Sam Hsu, Mohammad Ilyas, Mahesh Neelakanta, and Cyril Párkányi for their continued support; Sean Davey for the C++ review, for the LaTeX macros, and for his technical support; Andrew Nathanson for his friendship and software/hardware support; S. Rollins Guild for the C++ review and his friendship; A. Carlos Tondo, Julia Mistrello, and Luiz and Elizabete T. Biavatti for helping our company succeed; and Caren E. Tondo for her love, patience, and sense of humor.

Bruce thanks Andrew Bellezza, Jodi Solomon, and Mary Walstrom for their friendship and encouragement; Zahira Ammarguellat, Luddy Harrison, Sandra Loosemore, and Cotton Seed -- one couldn't ask for better co-workers; and Misty and Buddy for their boundless patience.

Last, but certainly not least, we thank the staff at Addison-Wesley. We are especially grateful to our associate editor, Debbie Lafferty, for her patience and knowing when and how hard to push; the production editor, Maureen Willard, for guiding us through the editing, proofs, and final pages; the production manager, John Fuller, for getting the macros approved and improved early in the process; and the freelancer, Diane Freed, for assisting with the production of this book. We appreciate your kind help.

Clovis L. Tondo
Bruce P. Leung

0201309939P04062001

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)