Accelerated C++: Practical Programming by Example / Edition 1

Accelerated C++: Practical Programming by Example / Edition 1

4.6 5
by Andrew Koenig, Barbara E. Moo
     
 

ISBN-10: 020170353X

ISBN-13: 9780201703535

Pub. Date: 08/14/2000

Publisher: Addison-Wesley

This is a first-rate introductory book that takes a practical approach to solving problems using C++. It covers a much wider scope of C++ programming than other introductory books I've seen, and in a surprisingly compact format.

--Dag Brück, founding member of the ANSI/ISO C++ committee

The authors present a clear, cogent

…  See more details below

Overview

This is a first-rate introductory book that takes a practical approach to solving problems using C++. It covers a much wider scope of C++ programming than other introductory books I've seen, and in a surprisingly compact format.

--Dag Brück, founding member of the ANSI/ISO C++ committee

The authors present a clear, cogent introduction to C++ programming in a way that gets the student writing nontrivial programs immediately.

--Stephen Clamage, Sun Microsystems, Inc., and chair of the ANSI C++ committee

Anyone reading just this one book and working through the examples and exercises will have the same skills as many professional programmers.

--Jeffrey D. Oldham, Stanford University

Why is Accelerated C++ so effective? Because it

  • Starts with the most useful concepts rather than the most primitive ones: You can begin writing programs immediately.
  • Describes real problems and solutions, not just language features: You see not only what each feature is, but also how to use it.
  • Covers the language and standard library together: You can use the library right from the start.
The authors proved this approach in their professional-education course at Stanford University, where students learned how to write substantial programs on their first day in the classroom.

Whether you are eager to get started writing your first C++ programs, or you are already using C++ and seeking deeper understanding, the authors' unique approach and expertise make Accelerated C++ an indispensable addition to your library.

020170353XB04062001

Read More

Product Details

ISBN-13:
9780201703535
Publisher:
Addison-Wesley
Publication date:
08/14/2000
Series:
C++ In-Depth Series
Edition description:
New Edition
Pages:
352
Sales rank:
398,521
Product dimensions:
7.25(w) x 9.25(h) x 0.75(d)

Table of Contents

Preface.

0. Getting Started.

Comments.

#include.

The Main Function.

Curly Braces.

Using the Standard Library for Output.

The Return Statement.

A Slightly Deeper Look.

Details.

1. Working with Strings.

Input.

Framing a Name.

Details.

2. Looping and Counting.

The Problem.

Overall Structure.

Writing an Unknown Number of Rows.

Writing a Row.

The Complete Framing Program.

Counting.

Details.

3. Working with Batches of Data.

Computing Student Grades.

Using Medians Instead of Averages.

Details.

4.Organizing Programs and Data.

Organizing computations.

Organizing Data.

Putting it All Together.

Partitioning the Grading Program.

The Revised Grading Program.

Details.

5. Using Sequential Containers and Analyzing Strings.

Separating Students into Categories.

Iterators.

Using Iterators Instead of Indices.

Rethinking Our Data Structure for Better Performance.

The List Type.

Taking Strings Apart.

Testing Our Split Function.

Putting Strings Together.

Details.

6. Using Library Algorithms.

Analyzing Strings.

Comparing Grading Schemes.

Classifying Students, Revisited.

Algorithms, Containers, and Iterators.

Details.

7. Using Associative Containers.

Containers that Support Efficient Look-Up.

Counting Words.

Generating a Cross-Reference Table.

Generating Sentences.

A Note on Performance.

Details.

8. Writing Generic Functions.

What is a Generic Function?

Data-Structure Independence.

Input and Output Iterators.

Using Iterators for Flexibility.

Details.

9. Defining New Types.

Student_info revisited.

Class Types.

Protection.

The Student_info class.

Constructors.

Using the Student_info class.

Details.

10. Managing Memory and Low-Level Data Structures.

Pointers and Arrays.

String Literals Revisited.

Initializing Arrays of Character Pointers.

Arguments to Main.

Reading and Writing Files.

Three Kinds of Memory Management.

Details.

11. Defining Abstract Data Types.

The Vec Class.

Implementing the Vec Class.

Copy Control.

Dynamic Vecs.

Flexible Memory Management.

Details.

12. Making Class Objects Act Like Values.

A Simple String Class.

Automatic Conversions.

Str Operations.

Some Conversions are Hazardous.

Conversion Operators.

Conversions and Memory Management.

Details.

13. Using Inheritance and Dynamic Binding.

Inheritance.

Polymorphism and Virtual Functions.

Using Inheritance to Solve Our Problem.

A Simple Handle Class.

Using the Handle Class.

Subtleties.

Details.

14. Managing Memory (Almost) Automatically.

Handles that Copy their Objects.

Reference-Counted Handles.

Handles that Let you Decide When to Share Data.

An Improvement on Controllable Handles.

Details.

15. Revisiting Character Pictures.

Design.

Implementation.

Details.

16. Where Do We Go From Here?

Use the Abstractions You Have.

Learn More.

Appendix A. Language Details.

Declarations.

Types.

Expressions.

Statements.

Appendix B. Library Summary.

Input-Output.

Containers and Iterators.

Algorithms.

Index. 020170353XT04062001

Read More

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >

Accelerated C++: Practical Programming by Example 4.6 out of 5 based on 0 ratings. 5 reviews.
Guest More than 1 year ago
I learned C++ back in my freshman year of college, but I learned it incorrectly. The standard was just finished but my classes weren't teaching it. I tried to simply read advanced books and articles on C++ programming, hoping that I would pick it up as I go, but my understanding was so fundamentally flawed that simple topics and the STL bogged me down. Then I found this book, and I have to say that it has been a big help. Within the first two chapters I already got myself reaquainted with cout/cin in a more intimate way than before, as well as understanding the class string. I believe that even if you have no experience with C++ you will definitely find this book to be valuable.
Guest More than 1 year ago
This is a book for those who want to learn C++ step-by-step and in the context of the topics in the book. One has to complete each chapter before proceeding to the next to be able to grasp the information presented. This is not a book for those who are just starting in the field of computer programming.
Anonymous More than 1 year ago
Anonymous More than 1 year ago
Anonymous More than 1 year ago