text.skipToContent text.skipToNavigation

Applications Programming in C++, 1st edition

  • Richard Johnsonbaugh
  • Martin Kalin

Published by Pearson (July 19th 2020) - Copyright © 1999

1st edition

Applications Programming in C++

ISBN-13: 9780137489633

Includes: Paperback
Free delivery
$154.66 $193.32

Permanently unavailable

What's included

  • Paperback

    You'll get a bound printed text.

Overview

Exceptionally organized and beautifully illustrated, this state-of-the-art guide to C++ programming is a must-have for anyone who needs to learn the language. Exploring C++ programming's most useful aspects (as well as some of its more specialized parts), it focuses on using the language to write practical programs based on sound design techniques. KEY TOPICS:Presents the must up-to-date coverage of C++ available - including a full section on STL (standard template library) - and offers many well-constructed examples, useful self-test exercises, beautifully fashioned sample applications, interesting and applicable programming exercises, lists of common programming errors, C++ Postscript sections that explain esoteric and less-used parts of the language, stunning illustrations, and up-to-date features. Includes a supplemental IBM-format program disk; a companion website contains the sourcecode, header files, and data files found on the disk as well as transparencies and an errata list.

Table of contents

(NOTE: Most chapters conclude with a C++ Postscript, Common Programming Errors, and Programming Exercises.)

0. Computer Systems and Program Development.

Algorithms. Computer Systems. Internal Representations. Programming Languages. Problem Solving and Program Development. Why C++?


1. Introduction to Data Types and Operators.

A First C++ Program. The int Data Type. Identifiers. Sample Application: Conversion of Lengths. Other Integer Data Types. Floating-Point Data Types. Arithmetic Operators. Sample Application: A Math Puzzle. Relational and Logical Operators.


2. Control Flow.

The tt if-tt else Statement. Sample Application: Computing Taxes. The while Statement. Sample Application: Computing Taxes Revisited. Files. The do while Statement. The for Statement. Assignment, Increment, and Decrement Operators. Sample Application: Statistical Measures. The break, continue, and switch Statements. Sample Application: Generating Prime Numbers. Promotions and Casts. Formatting.


3. Functions.

Introduction. Scope. Call by Value. Sample Application: The Monty Hall Problem. Call by Reference. Sample Application: Printing a Calendar. Overloading Functions. Recursion.


4. Arrays.

Why Arrays? The Index Operator. Arrays and Pointers. Sample Application: Totaling Votes. Character Strings. Arrays and Functions. String-Handling Functions. Sample Application: Merging Files. Multidimensional Arrays. Sample Application: Maintaining an Address Book.


5. Classes.

Object-Oriented and Procedural Programming. Classes and Objects. Sample Application: A Clock Class. Sample Application: A Time Stamp Class. Constructors and the Destructor. Sample Application: A Task Class. Class Data Members and Methods. Using Class Libraries. Pointers to Objects and the Indirect Selection Operator.


6. Inheritance.

Introduction. Basic Concepts and Syntax. Sample Application: Tracking Films. protected Members. Constructors and Destructors Under Inheritance. Sample Application: A Sequence Hierarchy.


7. Polymorphism.

Run-Time versus Compile-Time Binding in C++. Sample Application: Tracking Films Revisited. Name Overloading, Name Overriding, and Name Hiding. Abstract Base Classes.


8. Operator Overloading.

Basic Operator Overloading. Sample Application: A Complex Number Class. Operator Overloading Using Top-Level Functions. friend Functions. Overloading the Input and Output Operators. Overloading Some Special Operators. Sample Application: An Associative Array.


9. Storage.

Compile-Time and Run-Time Storage. Storage Classes for Variables. Pointers and Dynamic Storage. Sample Application: Sorting and Searching. Classes with Pointers as Data Members.


10. Templates and the Standard Template Library.

Template Basics. Sample Application: A Template Stack Class. Namespaces. The Standard Template Library. Sample Application: Stock Performance Reports.


A. ASCII Table.


B. The Preprocessor.


C. Selected C++ Functions and Methods.


D. Run-Time Type Identification.


E. Exception Handling.


Hints and Solutions to Odd-Numbered Exercises.


Index.

For teachers

All the material you need to teach your courses.

Discover teaching material