Object-Oriented Programming in C++

Nicolai M. Josuttis

  • 出版商: Wiley
  • 出版日期: 2002-12-13
  • 售價: $1,200
  • 貴賓價: 9.8$1,176
  • 語言: 英文
  • 頁數: 624
  • 裝訂: Paperback
  • ISBN: 0470843993
  • ISBN-13: 9780470843994
  • 相關分類: C++ 程式語言Object-oriented
  • 無法訂購

買這商品的人也買了...

相關主題

商品描述

C++ is now established as one of the leading industry programming languages for object-oriented software development. Its advantages over other languages include speed and flexibility. It is used as the base for many commercial software products and for performance solutions to complex problems. Not often taught as the primary programming language, students are frequently expected to pick up the language for themselves. This book is an ideal student self-learning guide.

As a step-by-step tutorial, this book teaches all language features and explains their practical usage. Intuitive examples are used that are neither too complex to distract, nor oversimplified. A key concept in C++ is programming with templates, which can help to program generic solutions - for example implementing polymorphism. Nicolai Josuttis teaches how to combine templates with object-oriented programming to produce the power of modern C++ development for high performance programs. It is a book that goes well beyond the basics.

A supplementary website, including source code, can be found at www.josuttis.com/cppbook

Features:

  • comprehensive, detailed, readable, practical and up-to-date

  • teaches how to get the power from C++, using the current ANSI language standard and programming mode

  • specific hints help C and Java programmers switch and compare languages.

  • website provides more examples and links to useful online resources.

Table of Contents

Preface.

1. About this Book.

Why Did Write this Book?

Prerequisites.

Organization of the Book.

How Should You Read this Book?

Example Code and Additional Informations.

Feedback.

2. Introduction: C++ and Object-Oriented Programming.

The C++ Language.

C++ as an Object-Oriented Programming Language.

Other Concepts of C++.

Teminology.

3. Basic Concepts of C++ Programs.

The First Program.

Types, Operators, and Control Constructs.

Functions and Modules.

Strings.

Collections.

Exception Handling.

Pointers, Arrays, and C-Strings.

Memory Management Using new and delete.

Communication with the Outside World.

4. Class Programming.

The First Class: Fraction.

Operators for Classes.

Running Time and Code Optimization.

References and Constants.

Input and Output Using Streams.

Friends and Other Types.

Exception Handling for Classes.

5. Inheritance and Polymorphism. Virtual Functions.

Polymorphism.

Multiple Inheritance.

Design Pitfalls with Inheritance.

6. Dynamic and Static Members.

Dynamic Members.

Other Aspects of Dynamic Members.

Inheritance of Classes with Dynamic Members.

Classes Containing Classes.

Static Members and Auxiliary Types.

7. Templates.

Why Templates?

Function Templates.

Class Templates.

Non-Type Template Parameters.

Additional Aspects of Templates.

Templates in Practice.

8. The Standard I/O Library in Detail.

The Standard Stream Classes.

File Access.

Stream Classes for Strings.

9. Other Language Features and Details.

Additional Details of the Standard Library.

Defining Special Operators.

Additional Aspects of new and delete.

Function Pointers and Member Pointers.

Combining C++ with C Code.

Additional Keywords.

10. Summary.

Hierarchy of C++ Operators.

Class-Specific Properties of Operations.

Rules for Automatic Type Conversion.

Useful Programming Guidelines and Conventions.

Bibliography.

Glossary.

Index.