![[Book Cover]](../covergif/0137489633.jpg)
|
Applications Programming in C++, 1/e
Richard Johnsonbaugh
Martin Kalin
Published October, 1998 by Prentice Hall Engineering/Science/Mathematics
Copyright 1999, 704 pp.
Paper
ISBN 0-13-748963-3
|
Sign up for future mailings on this subject.
See other books about:
C++--Intermediate Programming-Computer Science
C++ - Programming-General Engineering
![[Companion Website]](../images/cat_cwlogo.gif)
|

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.
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.
(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.
|