Practical C++ Programming

Front Cover
"O'Reilly Media, Inc.", 2003 - Computers - 549 pages

C++ is a powerful, highly flexible, and adaptable programming language that allows software engineers to organize and process information quickly and effectively. But this high-level language is relatively difficult to master, even if you already know the C programming language.

The 2nd edition of Practical C++ Programming is a complete introduction to the C++ language for programmers who are learning C++. Reflecting the latest changes to the C++ standard, this 2nd edition takes a useful down-to-earth approach, placing a strong emphasis on how to design clean, elegant code.

In short, to-the-point chapters, all aspects of programming are covered including style, software engineering, programming design, object-oriented design, and debugging. It also covers common mistakes and how to find (and avoid) them. End of chapter exercises help you ensure you've mastered the material.

Practical C++ Programming thoroughly covers:

  • C++ Syntax
  • Coding standards and style
  • Creation and use of object classes
  • Templates
  • Debugging and optimization
  • Use of the C++ preprocessor
  • File input/output
Steve Oualline's clear, easy-going writing style and hands-on approach to learning make Practical C++ Programming a nearly painless way to master this complex but powerful programming language.
 

Contents

What Is C++?
3
The Basics of Program Writing
7
Style
23
Basic Declarations and Expressions
35
Arrays Qualifiers and Reading Numbers
48
Decision and Control Statements
76
The Programming Process
87
Part II
105
Floating Point
337
Advanced Pointers
347
Advanced Classes
371
Part V
391
Exceptions
393
Modular Programming
401
Templates
419
Standard Template Library
432

More Control Statements
107
Variable Scope and Functions
118
The C++ Preprocessor
145
Bit Operations
160
Part III
177
Advanced Types
179
Simple Classes
191
More on Classes
211
Simple Pointers
221
Part IV
243
File InputOutput
245
Debugging and Optimization
277
Operator Overloading
310
Program Design
448
Putting It All Together
469
From C to C++
497
C++s Dustier Corners
504
Programming Adages
510
Part VI
515
ASCII Table
517
Ranges
519
Operator Precedence Rules
521
Computing Sine Using a Power Series
523
Resources
529
Index
531

Other editions - View all

Common terms and phrases

About the author (2003)

Steve Oualline lives in Southern California, where he works as a software engineer for a major phone company. In his free time he is a real engineer on the Poway Midland Railroad. Steve has written almost a dozen books on programming and Linux software. His web site is http: //www.oualline.com.

Bibliographic information