Always Learning

Applications Programming in C++
Richard JohnsonbaughDePaul University
Martin KalinDePaul University

ISBN-10: 0137489633
ISBN-13:  9780137489633

Publisher:  Prentice Hall
Copyright:  1999
Format:  Paper; 704 pp
Published:  10/15/1998
Status: Instock


Customers outside the U.S., click here.


Print this content

In this section:


Description

Intended for a one-term course in applications programming in C++; assumes no prior knowledge of C++, but does expect some programming experience in a high-level language.

Focusing on the most useful aspects of the popular C++ programming language as well as some of its more specialized parts, this state-of-the-art, well-organized text focuses on using C++ to write practical programs based on sound design techniques. It includes a detailed examination of STL (standard template library), numerous examples, exercises, sample applications, programming exercises, and lists of common programming errors.


Features

  • Up-to-date coverage of C++, including sections on new-style headers, new-style casts, type bool, namespaces, namespace std, and STL.
  • An entire chapter on STL (standard template library), with detailed discussions on such features as containers, iterators, algorithms, function objects, and container and function object adaptors.
  • Topics grouped according to their use and their relationships to one another. This organization enables readers to write simple but useful program immediately.
  • Starts students off with a practical introductory chapter to computer systems and program development.
  • Builds skills and fortifies retention.
  • Groups topics according to their use and their relationships to one another.
  • Alerts students to common mistakes and misconceptions with:
    • Lists of common programming errors.

    • C++ Postscript sections at the end of each chapter that discuss less-used parts of the language and give additional technical details about certain parts of the language.

  • Contains five useful appendices that cover such areas as the ASCII table, a list of some of the most useful C++ functions and class methods, and more.


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.



Back to top

Print this content

In this section:


Sample Chapter

View a Sample Chapter PDF:/samplechapter/0137489633.pdf

Back to top

Print this content

In this section:


Websites and Online Courses

Companion Website - Johnsonbaugh
Johnsonbaugh
©1999  |  Prentice Hall  |  Website  |  Live
ISBN-10: 0130137715  |  ISBN-13: 9780130137715
More Info

Back to top

Print this content

In this section:

Instructor's Guide
Johnsonbaugh
©1999  |  Prentice Hall  |  Paper  |  Out of Stock
ISBN-10: 0130828467  |  ISBN-13: 9780130828460

Show Downloadable Files
 | More Info

Back to top

Companion Website - Johnsonbaugh
Johnsonbaugh
©1999  |  Prentice Hall  |  Website  |  Live
ISBN-10: 0130137715  |  ISBN-13: 9780130137715
More Info

Back to top


Websites and online courses

Companion Website - Johnsonbaugh
Johnsonbaugh
©1999  |  Prentice Hall  |  Website  |  Live
ISBN-10: 0130137715  |  ISBN-13: 9780130137715
More Info


Websites and Online Courses

Companion Website - Johnsonbaugh
Johnsonbaugh
©1999  |  Prentice Hall  |  Website  |  Live
ISBN-10: 0130137715  |  ISBN-13: 9780130137715
More Info

Log in to the Instructor Resource Center

Login name: 

  Password: 

Forgot login/password?  |  Need to redeem an access code?

        

Instructor Resource Center File Download

This work is protected by local and international copyright laws and is provided solely for the use of instructors in teaching their courses and assessing student learning. Dissemination or sale of any part of this work (including on the World Wide Web) will destroy the integrity of the work and is not permitted. The work and materials from this site should never be made available to students except by instructors using the accompanying text in their classes. All recipients of this work are expected to abide by these restrictions and to honor the intended pedagogical purposes and the needs of other instructors who rely on these materials.

Cancel     I accept, proceed with download

Print this content

Pearson Higher Education offers special pricing when you choose to package your text with other student resources. If you're interested in creating a cost-saving package for your students contact your Pearson Higher Education representative.

Back to top