Home > Store > Programming > C/C++

larger cover

Add To My Wish List

C++ Primer Plus, 4th Edition

  • By Stephen Prata
  • Published Nov 14, 2001 by Sams. Part of the Primer Plus series.
    • Copyright 2002
    • Dimensions: 7-3/8" x 9-1/8"
    • Pages: 1128
    • Edition: 4th
    • Book
    • ISBN-10: 0-672-32223-4
    • ISBN-13: 978-0-672-32223-5
    • eBook (Adobe DRM)
    • ISBN-10: 0-7686-5843-8
    • ISBN-13: 978-0-7686-5843-9

Register your product to gain access to bonus material or receive a coupon.

  • Description
  • Downloads
  • Reviews
  • Sample Content
  • Updates

Product Author Bios

Stephen Prata teaches astronomy, physics, and computer science at the College of Marin in Kentfield, California. He received his B.S. from the California Institute of Technology and his Ph.D. from the University of California, Berkeley. Stephen has authored or coauthored over a dozen books for The Waite Group. He wrote The Waite GroupÕs New C Primer Plus, which received the Computer Press AssociationÕs 1990 Best How-to Computer Book Award and The Waite GroupÕs C++ Primer Plus, nominated for the Computer Press AssociationÕs Best How-to Computer Book Award in 1991.

The fourth edition presents the ANSI C++ standard beginning with a discussion of the essential elements of C++ programming: loops, expressions, functions, and classes. It walks readers through the basics of object-oriented programming: classes, inheritance, templates, and exceptions, as well as the latest object-oriented programming techniques. C++ Primer Plus contains hundreds of sample programs. The friendly tone, concise programs, and end-of-chapter review exercises allow beginners to write their own programs immediately.

Downloads

Solutions to a selected subset of Programming Exercises (zipped Word document): 58kb - samples.zip

All the code developed for the book in one convenient download - 324 kb -- cppexamp.zip

Customer Reviews

18 of 19 people found the following review helpful
5.0 out of 5 stars Comprehensive and Comprehensible, June 15, 2002
This review is from: C++ Primer Plus (4th Edition) (Paperback)
I don't think I could have asked for a better C++ guide than Steven Prata's C++ Primer Plus. I started learning the language flat-footed, that is, I didn't even know C. I am now writing C++ professionally and 95% of everything I know about the language came from this book.

Prata is a master instructor. His examples for illustrating classes, inheritance, and language syntax are almost always clear and helpful, as are his practice problems. He is also a great technical writer. In these days when most software instruction books read like they are written by the computers they are supposed to help us deal with, "C++ Primer Plus" has a refreshingly human tone of voice.

Be warned, you won't find absolutely everything in this book. I would have added a few extra pages to include a couple of things in the STL that Prata decided to leave out. And, if you're like I was and don't know C, you will find that "C++ Primer Plus" will leave you missing out on a few very... Read more

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


15 of 16 people found the following review helpful
5.0 out of 5 stars Invaluable Learning Tool, February 9, 2002
This review is from: C++ Primer Plus (4th Edition) (Paperback)
I learned C++ from the Second Edition of this book, back when I was in high school. I would go so far as to say it was the single most useful reference I had...the examples were clear and concise; while the book is not as detailed and will not take you to an expert level of C++ programming, it gives you a very solid grounding in Object Oriented concepts, and is an invaluable base to begin from. I've seen friends try to learn C++ from other books, and then look through my Second Edition of this and simply gush about how much easier to understand it is.

Concepts I learned in this book, I've used as a video game programmer (working with DirectX and C++ under Windows), and even as a Java programmer; the grounding in object-oriented design you get from this book is solid enough to carry to things other than C++ quite well.

I cannot recommend this book highly enough; it is NOT the only book you will want for learning C++, but it is definitely one of the first and most valuable!

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


4 of 4 people found the following review helpful
5.0 out of 5 stars Underrated C++ Intro Book, January 5, 2003
This review is from: C++ Primer Plus (4th Edition) (Paperback)
Having bought a few of the books recommended for C++ rookies I would definitely say this is the best. The explanations are clearer and have more depth to them than the other books, there are revision questions at the end of each chapter and programming exercises too.

I really think this book is a real bargain provided you are prepared to work hard at learning the language. C++ is tough to learn but if you read ( and sometimes re read ! ) the material here, complete the questions and exercises, you will definitely finish the book as an intermediate C++ programmer.

The only criticism I have is that it would've been good to have example program listings/answers for the programming exercises that are set at the end of each chapter, so you could tell if you were approaching things correctly.

Overall this is an outstanding introductory programming book , and if you are a beginner and can afford only one book, make it this one.

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


Share your thoughts with other customers:
 See all 32 customer reviews...

Table of Contents



1. Getting Started.

Learning C++. A Little History. Portability and Standards. The Mechanics of Creating a Program. Conventions Used in This Book. Our System.



2. Setting Out to C++.

C++ Initiation. More About C++ Statements. More C++ Statements. Functions. Summary. Review Questions. Programming Exercises.



3. Dealing with Data.

Simple Variables. The const Qualifier. Floating-Point Numbers. C++ Arithmetic Operators. Summary. Review Questions. Programming Exercises.



4. Compound Types.

Introducing Arrays. Strings. Introducing Structures. Unions. Enumerations. Pointers and the Free Store. Pointers, Arrays, and Pointer Arithmetic. Summary. Review Questions. Programming Exercises.



5. Loops and Relational Expressions.

Introducing the for Loop. Relational Expressions. The while Loop. The do while Loop. Loops and Text Input. Nested Loops and Two-Dimensional Arrays. Summary. Review Questions. Programming Exercises



6. Branching Statements and Logical Operators.

The if Statement. Logical Expressions. The cctype Library of Character Functions. The ?: Operator. The switch Statement. The break and continue Statements. Number-Reading Loops. Summary. Review Questions. Programming Exercises.



7. Functions-C++'s Programming Modules.

Function Review. Function Arguments and Passing by Value. Functions and Arrays. Functions and Two-Dimensional Arrays. Functions and C-Style Strings. Functions and Structures. Recursion. Pointers to Functions. Summary. Review Questions. Programming Exercises.



8. Adventures in Functions

Inline Functions. Reference Variables. Default Arguments. Function Polymorphism (Function Overloading). Function Templates. Summary. Review Questions. Programming Exercises.



9. Memory Models and Namespaces.

Separate Compilation. Storage Duration, Scope, and Linkage. Namespaces. Summary. Review Questions. Programming Exercises.



10. Objects and Classes.

Procedural and Object-Oriented Programming. Abstraction and Classes. Class Constructors and Destructors. Knowing Your Objects: The this Pointer. An Array of Objects. Class Scope. An Abstract Data Type. Summary. Review Questions. Programming Exercises.



11. Working with Classes.

Operator Overloading. Time on Our Hands. Introducing Friends. Overloaded Operators: Member Versus Nonmember Functions. More Overloading: A Vector Class. Automatic Conversions and Type Casts for Classes. Summary. Review Questions. Programming Exercises.



12. Classes and Dynamic Memory Allocation.

Dynamic Memory and Classes. A Queue Simulation. Summary. Review Questions. Programming Exercises.



13. Class Inheritance.

Beginning with a Simple Base Class. Special Relationships. Inheritance-An Is-a Relationship. Polymorphic Public Inheritance. Access Control-protected. Abstract Base Classes. Inheritance and Dynamic Memory Allocation. Class Design Review. Summary. Review Questions. Programming Exercises.



14. Reusing Code in C++

Classes with Object Members. Private Inheritance. Multiple Inheritance. Class Templates. Summary. Review Questions. Programming Exercises.



15. Friends, Exceptions, and More.

Friends. Nested Classes. Exceptions. RTTI. Type Cast Operators. Summary. Review Questions. Programming Exercises.



16. The string Class and the Standard Template Library.

The string Class. The auto_ptr Class. The Standard Template Library. Generic Programming. Function Objects (aka Functors). Algorithms. Other Libraries. Summary. Review Questions. Programming Exercises.



17. Input, Output, and Files.

An Overview of C++ Input and Output. Output with cout. Input with cin. File Input and Output. Incore Formatting. What Now? Summary. Review Questions. Programming Exercises.



Appendix A. Number Bases.


Appendix B. C++ Keywords.


Appendix C. The ASCII Character Set.


Appendix D. Operator Precedence.


Appendix E. Other Operators.


Appendix F. The string Template Class.


Appendix G. The STL Methods and Functions.


Appendix H. Selected Readings.


Appendix I. Converting to ANSI/ISO Standard C++.


Appendix J. Answers to Review Questions.


Index.

Errata

Errata for the book as of June 24, 2002 - (HTML)

Errata for the book - Zipped - 4kb - Erratacpp4th.zip

 

Book

This product currently is not for sale.

Buy

eBook (Adobe DRM)  $39.99  $31.99

About Adobe DRM eBooks

Information This eBook requires the free Adobe® Digital Editions software.

Before downloading this DRM-encrypted PDF, be sure to:


  • Install the free Adobe Digital Editions software on your machine. Adobe Digital Editions only works on Macintosh and Windows, and requires the Adobe Flash Player. Please see the official system requirements.
  • Authorize your copy of Adobe Digital Editions using your Adobe ID. If you don't already have an Adobe ID, you can create one here.
Purchase Reward: One Month Free Subscription
By completing any purchase on InformIT, you become eligible for an unlimited access one-month subscription to Safari Books Online.

Get access to thousands of books and training videos about technology, professional development and digital media from more than 40 leading publishers, including Addison-Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media, Wrox, Apress, and many more. If you continue your subscription after your 30-day trial, you can receive 30% off a monthly subscription to the Safari Library for up to 12 months. That's a total savings of $199.