C++ Primer Plus / Edition 5

C++ Primer Plus / Edition 5

3.9 9
by Stephen Prata
     
 

View All Available Formats & Editions

ISBN-10: 0672326973

ISBN-13: 9780672326974

Pub. Date: 11/15/2004

Publisher: Sams

C++ Primer Plus is a carefully crafted, complete tutorial on one of the most significant and widely used programming languages today. A friendly and easy-to-use self-study guide, this book is appropriate for both serious students of programming as well as developers already proficient in other languages.

The sixth edition of C++ Primer Plus has been

Overview

C++ Primer Plus is a carefully crafted, complete tutorial on one of the most significant and widely used programming languages today. A friendly and easy-to-use self-study guide, this book is appropriate for both serious students of programming as well as developers already proficient in other languages.

The sixth edition of C++ Primer Plus has been updated and expanded to cover the latest developments in C++, including a detailed look at the new C++11 standard.

Author and educator Stephen Prata has created an introduction to C++ that is instructive, clear, and insightful. Fundamental programming concepts are explained along with details of the C++ language. Many short, practical examples illustrate just one or two concepts at a time, encouraging readers to master new topics by immediately putting them to use.

Review questions and programming exercises at the end of each chapter help readers zero in on the most critical information and digest the most difficult concepts.

In C++ Primer Plus, you’ll find depth, breadth, and a variety of teaching techniques and tools to enhance your learning:

  • A new detailed chapter on the changes and additional capabilities introduced in the C++11 standard
  • Complete, integrated discussion of both basic C language and additional C++ features
  • Clear guidance about when and why to use a feature
  • Hands-on learning with concise and simple examples that develop your understanding a concept or two at a time
  • Hundreds of practical sample programs
  • Review questions and programming exercises at the end of each chapter to test your understanding
  • Coverage of generic C++ gives you the greatest possible flexibility
  • Teaches the ISO standard, including discussions of templates, the Standard Template Library, the string class, exceptions, RTTI, and namespaces

Product Details

ISBN-13:
9780672326974
Publisher:
Sams
Publication date:
11/15/2004
Edition description:
REV
Pages:
1224
Product dimensions:
7.38(w) x 9.00(h) x 1.53(d)

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 Argumentsand 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.

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >

C++ Primer Plus 3.9 out of 5 based on 0 ratings. 9 reviews.
Guest More than 1 year ago
The best way to rate Stephen Prata's C++ Primer, Fourth edition, is to compare it to the classic 'C++, How to Program,' Fourth edition, by Deitel & Deitel. I find that there is a place for both on my bookshelf. Although both are books for the beginning to intermediate C++ programmer, there's a big difference in how they cover the material. Prata covers just about the same ground as Deitel & Deitel , but with a more conversational ease and natural flow. Reading Prata is almost like having someone explain a topic to you in person. Prata includes helpful notes, including the idiosyncracies of the popular compilers, that will save you lots of wasted effort, and maybe your sanity as well. Prata writes a book that you can read with ease, confident that he will get to all the important topics. It is all there, and very accessible. C++ Primer Plus, Fourth edition, could have earned a five star rating from this reviewer were it not for numerous typographical errors and exceedingly poor graphics. For example, Figure 13.5 (page 598), which attempts to provide a graphic overview of the important topic of Virtual Function Tables, is made unreadable by the application of a gradient fill which obliterates much of the text. Other diagrams in the book are similarly defaced by amateurish and inappropriate use of gradient fills and excessive borders. This is quite disappointing in a book that has undergone four editions and a second reprint, August 2002, 'with corrections.' Furthermore, there's no CD-ROM packaged with the Fourth edition, although example code is said to available at the publisher's website. In summary, this is an excellent text marred by poor production values (typos and illegible graphics). Never the less, it is exceedingly good at presenting the foundations and advanced topics of C++ in an accessible style. I highly reccommend this book.
Sagesrage More than 1 year ago
C++ Primer is an excelently constructed book, I am 13 years old and interested in programming. I had ordered this book and am learning decently. Stephen Prata does an excellent job telling readers alternative way around problems and how to flex through different situations depending on what software or operating system you have, Wich i may add is another positive aspect to this book, its not limited to one specific Compiler, Operating system, Or whatever.

I am highley satisfied with this book, and reccomend it to anyone who feels the urge to learn C++. Alot of hard work was put into this book.
One thing a may add to warn though, is the binding of the book, Try to excersise caution and go easy with the book.
Guest More than 1 year ago
It is staggering just how much work and insight has gone into this book. Whereas others frequently adopt the 'don't worry about why, just type this' approach, Prata explains the how and the why, but it comes across as a conversation - free flowing and easy to read - unlike so many other books on this complex topic. Truly a work of art!
Guest More than 1 year ago
This book is excellent book, especially for beginners. Clear, easy-to-understand explaination every concept and feature of the C++ programming language. I consider this is the best ever written for learning C++, highly recommanded for anyone who seriously wants to learn C++
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Guest More than 1 year ago
A very good book.. A classic. A must read and have