Book description
"Readers can pick up this book and become familiar with C++ in a short time. Stan has taken a very broad and complicated topic and reduced it to the essentials that budding C++ programmers need to know to write real programs. His case study is effective and provides a familiar thread throughout the book." --Steve Vinoski, IONA
For the practicing programmer with little time to spare, Essential C++ offers a fast-track to learning and working with C++ on the job. This book is specifically designed to bring you up to speed in a short amount of time. It focuses on the elements of C++ programming that you are most likely to encounter and examines features and techniques that help solve real-world programming challenges.
Essential C++ presents the basics of C++ in the context of procedural, generic, object-based, and object-oriented programming. It is organized around a series of increasingly complex programming problems, and language features are introduced as solutions to these problems. In this way you will not only learn about the functions and structure of C++, but will understand their purpose and rationale.
You will find in-depth coverage of key topics such as:
Generic programming and the Standard Template Library (STL)
Object-based programming and class design
Object-oriented programming and the design of class hierarchies
Function and class template design and use
Exception handling and Run-Time Type Identification
In addition, an invaluable appendix provides complete solutions to, and detailed explanations of, the programming exercises found at the end of each chapter. A second appendix offers a quick reference handbook for the generic algorithms, providing an example of how each is used.
This concise tutorial will give you a working knowledge of C++ and a firm foundation on which to further your professional expertise.
0201485184B04062001
Table of contents
- Copyright
- Preface
- Basic C++ Programming
- Procedural Programming
- Generic Programming
-
Object-Based Programming
- How to Implement a Class
- What Are Class Constructors and the Class Destructor?
- What Are mutable and const?
- What Is the this Pointer?
- Static Class Members
- Building an Iterator Class
- Collaboration Sometimes Requires Friendship
- Implementing a Copy Assignment Operator
- Implementing a Function Object
- Providing Class Instances of the iostream Operators
- Pointers to Class Member Functions
-
Object-Oriented Programming
- Object-Oriented Programming Concepts
- A Tour of Object-Oriented Programming
- Polymorphism without Inheritance
- Defining an Abstract Base Class
- Defining a Derived Class
- Using an Inheritance Hierarchy
- How Abstract Should a Base Class Be?
- Initialization, Destruction, and Copy
- Defining a Derived Class Virtual Function
- Run-Time Type Identification
- Programming with Templates
- Exception Handling
-
Exercise Solutions
- Exercise 1.4
- Exercise 1.5
- Exercise 1.6
- Exercise 1.7
- Exercise 1.8
- Exercise 2.1
- Exercise 2.2
- Exercise 2.3
- Exercise 2.4
- Exercise 2.5
- Exercise 2.6
- Exercise 3.1
- Exercise 3.2
- Exercise 3.3
- Exercise 3.4
- Exercise 4.1
- Exercise 4.2
- Exercise 4.3
- Exercise 4.4
- Exercise 4.5
- Exercise 5.1
- Exercise 5.2
- Exercise 5.3
- Exercise 5.4
- Exercise 6.1
- Exercise 6.2
- Exercise 7.1
- Exercise 7.2
- Exercise 7.3
-
Generic Algorithms Handbook
- accumulate()
- adjacent_difference()
- adjacent_find()
- binary_search()
- copy()
- copy_backward()
- count()
- count_if()
- equal()
- fill()
- fill_n()
- find()
- find_end()
- find_first_of()
- find_if()
- for_each()
- generate()
- generate_n()
- includes()
- inner_product()
- inplace_merge()
- iter_swap()
- lexicographical_compare()
- max(), min()
- max_element() , min_element()
- merge()
- nth_element()
- partial_sort(), partial_sort_copy()
- partial_sum()
- partition(), stable_partition()
- random_shuffle()
- remove(), remove_copy()
- remove_if(), remove_copy_if()
- replace(), replace_copy()
- replace_if(), replace_copy_if()
- reverse(), reverse_copy()
- rotate(), rotate_copy()
- search()
- search_n()
- set_difference()
- set_intersection()
- set_symmetric_difference()
- set_union()
- sort(), stable_sort()
- transform()
- unique(), unique_copy()
- Index
Product information
- Title: Essential C++
- Author(s):
- Release date: October 1999
- Publisher(s): Addison-Wesley Professional
- ISBN: 0201485184
You might also like
book
Advanced C++
Become an expert at C++ by learning all the key C++ concepts and working through interesting …
book
More Effective C++
More than 150,000 copies in print! Praise for Scott Meyers’ first book, Effective C++: “I heartily …
book
Expert C++
Design and architect real-world scalable C++ applications by exploring advanced techniques in low-level programming, object-oriented programming …
video
Effective Modern C++ live!
What's the best way for one thread to notify another that an event has taken place? …