Object-Oriented Programming in C++ / Edition 2

Paperback (Print)
Buy Used
Buy Used from BN.com
$104.58
(Save 41%)
Item is in good condition but packaging may have signs of shelf wear/aging or torn packaging.
Condition: Used – Good details
Used and New from Other Sellers
Used and New from Other Sellers
from $1.99
Usually ships in 1-2 business days
(Save 98%)
Other sellers (Paperback)
  • All (22) from $1.99   
  • New (6) from $151.80   
  • Used (16) from $1.99   
Close
Sort by
Page 1 of 1
Showing All
Note: Marketplace items are not eligible for any BN.com coupons and promotions
$151.80
Seller since 2007

Feedback rating:

(23495)

Condition:

New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

New
BRAND NEW

Ships from: Avenel, NJ

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
$151.90
Seller since 2008

Feedback rating:

(195)

Condition: New
0130158852 New. Looks like an interesting title!

Ships from: Naperville, IL

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
$178.02
Seller since 2014

Feedback rating:

(0)

Condition: New
0130158852 Premium Publisher Direct Books are Like New or Brand New books direct from the publisher sometimes at a discount. Multiple copies are usually available. These books ... are not available for expedited shipping and may take up to 14 business days to receive. Read more Show Less

Ships from: Woodland Hills, CA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Express, 48 States
$186.92
Seller since 2014

Feedback rating:

(31)

Condition: New
PAPERBACK New 0130158852 Premium Publisher Direct Books are Like New or Brand New books direct from the publisher sometimes at a discount. Multiple copies are usually ... available. These books are not available for expedited shipping and may take up to 14 business days to receive. Read more Show Less

Ships from: Tarzana, CA

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$206.35
Seller since 2010

Feedback rating:

(9)

Condition: New
8-3-99 other 2 BRAND NEW! ONLY Expedited orders are shipped with tracking number! *WE DO NOT SHIP TO PO BOX* Please allow up to 14 days delivery for order with standard ... shipping. SHIPPED FROM MULTIPLE LOCATIONS. Read more Show Less

Ships from: San Jose, CA

Usually ships in 1-2 business days

  • Canadian
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$235.02
Seller since 2014

Feedback rating:

(5)

Condition: New
New

Ships from: Idyllwild, CA

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
Page 1 of 1
Showing All
Close
Sort by

Overview

A valuable handbook/reference for professionals who need to learn C++ and master its latest updates, this exceptionally organized, #1-rated guide teaches the power and flexibility of the C++ programming language through object-oriented programming applications. Examines the most up-to-date C++ features, including new-style headers, new-style casts, type bool, type string, stringstream classes, namespaces, namespace std., exception handling, run-time type identification, operator new , the template input/output classes, and more. Offers complete coverage on STL (standard template library), including containers, iterators, algorithms, and function objects; the standard input/output library IN DETAIL; and the Microsoft Foundation Classes. Contains an extensive number of well-constructed examples, beautifully fashioned sample applications, interesting and practical programming exercises, boxed figures and vibrant illustrations. A companion web site provides the book's source code, header files, and data files; sample syllabi; transparencies; and an errata list. For professionals in computer science and related fields.

Read More Show Less

Product Details

  • ISBN-13: 9780130158857
  • Publisher: Prentice Hall
  • Publication date: 8/3/1999
  • Edition description: Subsequent
  • Edition number: 2
  • Pages: 615
  • Product dimensions: 6.92 (w) x 9.05 (h) x 1.33 (d)

Meet the Author

RICHARD JOHNSONBAUGH is professor of computer science at DePaul University. He has degrees in computer science and mathematics from the University of Oregon, Yale University, and the University of Illinois at Chicago. He is the author of Discrete Mathematics, Fourth Edition, and the co-author with Martin Kalin of C for Scientists and Engineers, Applications Programming in C++, Applications Programming in ANSI C, Third Edition, and Object-Oriented Programming in C++.

MARTIN KALIN is also professor of computer science at DePaul University. He has a Ph.D. degree in logic from Northwestern University. His research areas include data communications and programming languages. He has written large systems in the areas of scheduling and product configuration for Fortune 100 companies.

Read More Show Less

Read an Excerpt

Preface

This book is based on C++ courses given by the authors at DePaul University and can be used for self-study or for a course on object-oriented programming in C++. We assume no prior knowledge of C++, but we do assume knowledge of C. Coverage of C at the level provided in R. Johnsonbaugh and M. Kalin, Applications Programming in ANSI C, 3rd ed. (Upper Saddle River, N.J.: Prentice Hall, 1996) provides sufficient background for this book. The book and its supplements— a CDROM containing Microsoft's C++ compiler, an Instructor's Guide, and a World Wide Web site— provide a comprehensive support system to help the reader master C++. In this book, as in our other C and C++ books, we make extensive use of examples, figures, self-study exercises, sample applications, lists of common programming errors, and programming exercises. We strive for clarity throughout the book and also illustrate a variety of good programming practices.

This book treats object-oriented principles (see Chapter 1); emphasizes sound programming practices; introduces templates and the standard template library (see Chapter 7); presents in depth the C++ input/output class hierarchy (Chapter 8); features major, useful examples (e.g., a stack class, Sections 3.2 and 7.2; and a random access file class, Section 8.6); and introduces objectoriented programming in the Microsoft Foundation Classes in Chapter 9.

The C++ language presented here is based on the approved standard. As such it contains the latest additions and changes to the language including

  • The logical type bool.
  • The string class.
  • New-style headers.
  • Namespaces and the namespace std.
  • New-style casts.
  • STL (Standard Template Library).
  • Exception handling.
  • Run-time type identification.
  • The operator new .
  • The template input/output classes.
  • The stringstream classes.

Overview

During the 1980s and early 1990s, C became the language of choice for many applications and systems programmers. Most major software available for personal computers was written in C: spreadsheets, word processors, databases, communications packages, statistical software, graphics packages, and so on. Virtually all software written for the UNIX environment was likewise written in C, and many mainframe systems meant to be ported from one platform to another were also coded in C. In the early 1980s, Bjarne Stroustrup of AT&T Bell Labs developed C++ as an extension of C that supports object-oriented programming, a type of programming that is well suited to the large, complex software systems now written for all platforms, from the cheapest personal computers to the most expensive mainframes. C++ also corrects some shortcomings in C, which C++ includes as a subset, and it supports abstract data types and generic functions through templates.

C++ is a highly complex language. Fortunately, most C++ programmers can benefit from its power without mastering each and every one of its features. We focus on the most useful aspects of the language, but we place some of the more esoteric and specialized parts of the language in endof-chapter sections labeled C++ Postscript. We focus on using C++ to write practical programs based on sound design techniques, rather than on tricks and surprises in C++.

About This Book

This book includes

  • Examples and exercises that cover a wide range of applications.
  • Motivating real-world applications.
  • A broad variety of programming exercises. The book contains over 100 programming exercises.
  • End-of-chapter lists of common programming errors.
  • Coverage of STL (the Standard Template Library) (Chapter 7).
  • Discussion of the standard C++ input/output class library (Chapter 8).
  • Coverage of object-oriented programming in the Microsoft Foundation Classes (Chapter 9).
  • Exercises at the ends of sections so that readers can check their mastery of the sections. The book contains over 500 such exercises. Answers to the odd-numbered section exercises are given in the back of the book, and answers to the even-numbered section exercises are given in the Instructor's Guide.
  • Figures to facilitate the learning process.
  • The latest changes and additions to the C++ language.
  • Major data structures, including stacks (Sections 3.2 and 7.2) and files (Section 8.6), implemented in C++.
  • Understandable code. We have opted for clarity rather than subterfuges based on obscure C++ features.
  • Microsoft's Visual C++ student compiler.

Changes from the First Edition

  • Recent changes and additions to C++ are incorporated throughout the book.
  • Namespaces are introduced earlier (Section 2.1) because namespace std is needed for the newstyle headers.
  • Exception handling is also introduced earlier (Section 2.8).
  • An entire chapter is devoted to polymorphism (Chapter 5).
  • Inheritance (Chapter 4) and polymorphism (Chapter 5) are introduced earlier to underscore their importance to the object-oriented programming paradigm. Operator overloading therefore comes later (Chapter 6).
  • Run-time type identification is integrated into the main body of the text (Section 5.5).
  • An entire chapter (Chapter 7) is devoted to templates and the standard template library.
  • Chapter 8 (Chapter 7 in the first edition) on the C++ input/output class hierarchy is considerably revised to incorporate significant changes to this hierarchy.
  • Chapter 9 is added to cover object-oriented programming in the Microsoft Foundation Classes.
  • Some of the more recondite parts of the language are reserved for C++ Postscript sections at ends of chapters.
  • The number of worked examples has been increased to nearly 300.
  • The number of exercises has been increased to over 500.
  • We have extensively revised the sample applications.
  • The figures are boxed to separate them visually from the text.
  • A World Wide Web site has been established to provide up-to-date support for the book.
  • Microsoft's Visual C++ student compiler is included on a CD-ROM.
Organization of the Book

Chapter 1 introduces key concepts associated with object-oriented design and programming: classes, abstract data types, objects, encapsulation, the client/server model, message passing, inheritance, polymorphism, and others. The chapter contrasts object-oriented design with topdown functional decomposition and offers examples to illustrate the differences between the approaches.

Important changes and additions to C++ are detailed in Chapter 2. Chapter 2 also introduces namespaces, type string, the new and delete operators, exception handling, and basic C++ input/output. The reader can begin using these important C++ features right away.

Chapter 3 covers the basics of classes so that the reader can begin using classes at once. The chapter explains how to declare classes; how to write constructors, destructors, and other methods; static data members and methods; and pointers to objects. Chapter 3 relies heavily on examples to explain how classes may be used to implement abstract data types and to meet the object-oriented goal of encapsulation.

Inheritance (including multiple inheritance) is the topic of Chapter 4. Through examples and sample applications (e.g., a sequence hierarchy), the chapter illustrates basic programming techniques.

Polymorphism is covered in Chapter 5. Section 5.1 carefully explains the distinction between run-time and compile-time binding. Sections 5.4 and 5.5 explain abstract base classes and run-time type identification.

Chapter 6 is devoted to operator overloading. The chapter shows how to overload common operators (e.g., +, /) as well as the subscript, function call, memory management, preincrement, and postincrement operators among others. Many examples and sample applications highlight the power of operator overloading.

Templates and STL (standard template library) are explained in Chapter 7. A template stack class (Section 7.2) shows templates in action, and a sample application (stock performance reports in Section 7.4) demonstrates how to use STL.

Chapter 8 serves several purposes. First, the chapter examines the C++ input/output library in detail so that the interested reader can exploit the powerful classes contained therein. This treatment culminates in a sample application that builds a random access file class through inheritance from a system file class. Second, the chapter uses the input/output library as a major, sophisticated example of object-oriented design realized in C++. Third, the hierarchy provides an excellent example of the use of templates. Chapter 8 pays close attention to manipulators, which are powerful ways to do sophisticated input/output in C++. We believe that Chapter 8 offers an unrivaled examination of C++'s input/output.

Chapter 9 covers object-oriented programming in the Microsoft Foundation Classes (MFC). We clarify the relationship between MFC and the Win32 Applications Programmer Interface, Microsoft's C libraries for accessing systems services. We also introduce the basic concepts and constructs of event-driven programming. The chapter focuses on object persistence through serialization and interapplication communication under Microsoft's Common Object Model. We provide two sample applications together with an overview of MFC and Visual C++.

Two appendices are provided for reference. Appendix A contains the ASCII table. Appendix B contains a list of some of the most useful C++ functions and class methods. We describe the parameters and return values, the header to include, and what the function or method does.

We rely heavily on short examples, figures, and tables to illustrate specific points about the syntax and semantics of C++. From our experience teaching C++ and other languages, we are convinced that no single method is appropriate for clarifying every aspect about a language.

Most of our students agree with us that learning and using C++ is exciting. We have tried to incorporate this view by using engaging examples, sample applications, programming exercises, and short segments of code.

Chapter Structure

The basic chapter organization is as follows:

Contents Overview Section Section Exercises Section Section Exercises C++ Postscript Common Programming Errors Programming Exercises

In every chapter except 1 and 2, several sections are devoted to sample applications. Each of these sections contains a statement of a problem, sample input and output, a solution to the problem, and a well-documented implementation of a solution to the problem in C++. Most of these sections conclude with an extended discussion.

The sample applications include the following:

  • A stack class (Sections 3.2 and 7.2)
  • Tracking films (Sections 4.3 and 5.2)
  • A sequence hierarchy (Section 4.6)
  • A complex number class (Section 6.2)
  • An associative array (Section 6.8)
  • Stock performance reports (Section 7.4)
  • A random access file class (Section 8.6)
  • Interapplication communication under Microsoft's Common Object Model (Section9.5)
The C++ Postscript sections discuss less-used parts of the language and give additional technical details about certain parts of the language.

The Common Programming Errors sections highlight those aspects of the language that are easily misunderstood.

The book contains over 100 programming exercises drawn from a wide variety of applications.

Examples

The book contains nearly 300 examples, which clarify particular facets of C++ for the reader and show the purpose of various C++ features. A box marks the end of each example.

Exercises

The book contains over 500 section review exercises, the answers to which are short answers, code segments, and, in a few cases, entire programs. These exercises are suitable as homework problems or as self-tests. The answers to the odd-numbered exercises are given in the back of the book, and the answers to the even-numbered exercises are given in the Instructor's Guide. Our experience in teaching C++ has convinced us of the importance of these exercises.

The applications covered in the programming exercises at the ends of the chapters include the following:

  • Simulation (Programming Exercise 2.9)
  • Queues (Programming Exercises 3.8 and 7.4)
  • Process synchronization (Programming Exercise 3.10)
  • Databases (Programming Exercise 3.15)
  • Local area networks (Programming Exercises 3.17 and 6.7)
  • Array hierarchy (Programming Exercise 4.4)
  • Dating services (Programming Exercise 5.10)
  • Iterators (Programming Exercises 7.6, 7.7, and 7.8)
  • Scheduling (Programming Exercise 7.14)
  • An indexed file class (Programming Exercise 8.5)
  • A dialog-based application with a graphical-user interface for a system administrator (Programming Exercise 9.9)
Not every reader will be interested in all of these applications; however, we think that it is important to show the variety of problems that C++ can address.

CD-ROM

The book comes with a CD-ROM that has the Student Edition of the current release of Microsoft's Visual C++ Integrated Development Environment, which includes a C++ compiler, a debugger and class browser, help facilities, the Microsoft Foundation Classes and the ActiveX Template Library, and many other resources for applications development. All of our sample applications, including the Microsoft-specific applications of Chapter 9, may be compiled and run under Visual C++.

Instructor Supplement

An Instructor's Guide is available from the publisher at no cost to adopters of this book. The Instructor's Guide contains solutions to even-numbered section exercises, sample syllabi, and transparency masters.

World Wide Web Site

The World Wide Web site

http://condor.depaul.edu/-mkalin

contains the source code, header files, and data files for all of the book's sample applications; the source code for some of the longer examples; sample syllabi; transparencies; a sample chapter; information about using Microsoft Visual C++; additional technical details about the Microsoft Foundation Classes; and an errata list.

Read More Show Less

Table of Contents

1. Object-Oriented Programming.

2. From C to C++.

3. Classes.

4. Inheritance.

5. Polymorphism.

6. Operator Overloading.

7. Templates and the Standard Template Library.

8. The C++ Input/Output Class Hierarchy.

9. Object-Oriented Programming In The Microsoft Foundation Classes.

Appendix A. ASCII Table.

Appendix B. Selected C++ Functions and Methods.

Hints and Solutions to Odd-Numbered Exercises.

Index.

Read More Show Less

Preface

Preface

This book is based on C++ courses given by the authors at DePaul University and can be used for self-study or for a course on object-oriented programming in C++. We assume no prior knowledge of C++, but we do assume knowledge of C. Coverage of C at the level provided in R. Johnsonbaugh and M. Kalin, Applications Programming in ANSI C, 3rd ed. (Upper Saddle River, N.J.: Prentice Hall, 1996) provides sufficient background for this book. The book and its supplements— a CDROM containing Microsoft's C++ compiler, an Instructor's Guide, and a World Wide Web site— provide a comprehensive support system to help the reader master C++. In this book, as in our other C and C++ books, we make extensive use of examples, figures, self-study exercises, sample applications, lists of common programming errors, and programming exercises. We strive for clarity throughout the book and also illustrate a variety of good programming practices.

This book treats object-oriented principles (see Chapter 1); emphasizes sound programming practices; introduces templates and the standard template library (see Chapter 7); presents in depth the C++ input/output class hierarchy (Chapter 8); features major, useful examples (e.g., a stack class, Sections 3.2 and 7.2; and a random access file class, Section 8.6); and introduces objectoriented programming in the Microsoft Foundation Classes in Chapter 9.

The C++ language presented here is based on the approved standard. As such it contains the latest additions and changes to the language including

  • The logical type bool.
  • The string class.
  • New-style headers.
  • Namespaces and the namespace std.
  • New-style casts.
  • STL (Standard Template Library).
  • Exception handling.
  • Run-time type identification.
  • The operator new .
  • The template input/output classes.
  • The stringstream classes.

Overview

During the 1980s and early 1990s, C became the language of choice for many applications and systems programmers. Most major software available for personal computers was written in C: spreadsheets, word processors, databases, communications packages, statistical software, graphics packages, and so on. Virtually all software written for the UNIX environment was likewise written in C, and many mainframe systems meant to be ported from one platform to another were also coded in C. In the early 1980s, Bjarne Stroustrup of AT&T Bell Labs developed C++ as an extension of C that supports object-oriented programming, a type of programming that is well suited to the large, complex software systems now written for all platforms, from the cheapest personal computers to the most expensive mainframes. C++ also corrects some shortcomings in C, which C++ includes as a subset, and it supports abstract data types and generic functions through templates.

C++ is a highly complex language. Fortunately, most C++ programmers can benefit from its power without mastering each and every one of its features. We focus on the most useful aspects of the language, but we place some of the more esoteric and specialized parts of the language in endof-chapter sections labeled C++ Postscript. We focus on using C++ to write practical programs based on sound design techniques, rather than on tricks and surprises in C++.

About This Book

This book includes

  • Examples and exercises that cover a wide range of applications.
  • Motivating real-world applications.
  • A broad variety of programming exercises. The book contains over 100 programming exercises.
  • End-of-chapter lists of common programming errors.
  • Coverage of STL (the Standard Template Library) (Chapter 7).
  • Discussion of the standard C++ input/output class library (Chapter 8).
  • Coverage of object-oriented programming in the Microsoft Foundation Classes (Chapter 9).
  • Exercises at the ends of sections so that readers can check their mastery of the sections. The book contains over 500 such exercises. Answers to the odd-numbered section exercises are given in the back of the book, and answers to the even-numbered section exercises are given in the Instructor's Guide.
  • Figures to facilitate the learning process.
  • The latest changes and additions to the C++ language.
  • Major data structures, including stacks (Sections 3.2 and 7.2) and files (Section 8.6), implemented in C++.
  • Understandable code. We have opted for clarity rather than subterfuges based on obscure C++ features.
  • Microsoft's Visual C++ student compiler.

Changes from the First Edition

  • Recent changes and additions to C++ are incorporated throughout the book.
  • Namespaces are introduced earlier (Section 2.1) because namespace std is needed for the newstyle headers.
  • Exception handling is also introduced earlier (Section 2.8).
  • An entire chapter is devoted to polymorphism (Chapter 5).
  • Inheritance (Chapter 4) and polymorphism (Chapter 5) are introduced earlier to underscore their importance to the object-oriented programming paradigm. Operator overloading therefore comes later (Chapter 6).
  • Run-time type identification is integrated into the main body of the text (Section 5.5).
  • An entire chapter (Chapter 7) is devoted to templates and the standard template library.
  • Chapter 8 (Chapter 7 in the first edition) on the C++ input/output class hierarchy is considerably revised to incorporate significant changes to this hierarchy.
  • Chapter 9 is added to cover object-oriented programming in the Microsoft Foundation Classes.
  • Some of the more recondite parts of the language are reserved for C++ Postscript sections at ends of chapters.
  • The number of worked examples has been increased to nearly 300.
  • The number of exercises has been increased to over 500.
  • We have extensively revised the sample applications.
  • The figures are boxed to separate them visually from the text.
  • A World Wide Web site has been established to provide up-to-date support for the book.
  • Microsoft's Visual C++ student compiler is included on a CD-ROM.
Organization of the Book

Chapter 1 introduces key concepts associated with object-oriented design and programming: classes, abstract data types, objects, encapsulation, the client/server model, message passing, inheritance, polymorphism, and others. The chapter contrasts object-oriented design with topdown functional decomposition and offers examples to illustrate the differences between the approaches.

Important changes and additions to C++ are detailed in Chapter 2. Chapter 2 also introduces namespaces, type string, the new and delete operators, exception handling, and basic C++ input/output. The reader can begin using these important C++ features right away.

Chapter 3 covers the basics of classes so that the reader can begin using classes at once. The chapter explains how to declare classes; how to write constructors, destructors, and other methods; static data members and methods; and pointers to objects. Chapter 3 relies heavily on examples to explain how classes may be used to implement abstract data types and to meet the object-oriented goal of encapsulation.

Inheritance (including multiple inheritance) is the topic of Chapter 4. Through examples and sample applications (e.g., a sequence hierarchy), the chapter illustrates basic programming techniques.

Polymorphism is covered in Chapter 5. Section 5.1 carefully explains the distinction between run-time and compile-time binding. Sections 5.4 and 5.5 explain abstract base classes and run-time type identification.

Chapter 6 is devoted to operator overloading. The chapter shows how to overload common operators (e.g., +, /) as well as the subscript, function call, memory management, preincrement, and postincrement operators among others. Many examples and sample applications highlight the power of operator overloading.

Templates and STL (standard template library) are explained in Chapter 7. A template stack class (Section 7.2) shows templates in action, and a sample application (stock performance reports in Section 7.4) demonstrates how to use STL.

Chapter 8 serves several purposes. First, the chapter examines the C++ input/output library in detail so that the interested reader can exploit the powerful classes contained therein. This treatment culminates in a sample application that builds a random access file class through inheritance from a system file class. Second, the chapter uses the input/output library as a major, sophisticated example of object-oriented design realized in C++. Third, the hierarchy provides an excellent example of the use of templates. Chapter 8 pays close attention to manipulators, which are powerful ways to do sophisticated input/output in C++. We believe that Chapter 8 offers an unrivaled examination of C++'s input/output.

Chapter 9 covers object-oriented programming in the Microsoft Foundation Classes (MFC). We clarify the relationship between MFC and the Win32 Applications Programmer Interface, Microsoft's C libraries for accessing systems services. We also introduce the basic concepts and constructs of event-driven programming. The chapter focuses on object persistence through serialization and interapplication communication under Microsoft's Common Object Model. We provide two sample applications together with an overview of MFC and Visual C++.

Two appendices are provided for reference. Appendix A contains the ASCII table. Appendix B contains a list of some of the most useful C++ functions and class methods. We describe the parameters and return values, the header to include, and what the function or method does.

We rely heavily on short examples, figures, and tables to illustrate specific points about the syntax and semantics of C++. From our experience teaching C++ and other languages, we are convinced that no single method is appropriate for clarifying every aspect about a language.

Most of our students agree with us that learning and using C++ is exciting. We have tried to incorporate this view by using engaging examples, sample applications, programming exercises, and short segments of code.

Chapter Structure

The basic chapter organization is as follows:

Contents
Overview
Section
Section Exercises
Section
Section Exercises
C++ Postscript
Common Programming Errors
Programming Exercises

In every chapter except 1 and 2, several sections are devoted to sample applications. Each of these sections contains a statement of a problem, sample input and output, a solution to the problem, and a well-documented implementation of a solution to the problem in C++. Most of these sections conclude with an extended discussion.

The sample applications include the following:

  • A stack class (Sections 3.2 and 7.2)
  • Tracking films (Sections 4.3 and 5.2)
  • A sequence hierarchy (Section 4.6)
  • A complex number class (Section 6.2)
  • An associative array (Section 6.8)
  • Stock performance reports (Section 7.4)
  • A random access file class (Section 8.6)
  • Interapplication communication under Microsoft's Common Object Model (Section9.5)
The C++ Postscript sections discuss less-used parts of the language and give additional technical details about certain parts of the language.

The Common Programming Errors sections highlight those aspects of the language that are easily misunderstood.

The book contains over 100 programming exercises drawn from a wide variety of applications.

Examples

The book contains nearly 300 examples, which clarify particular facets of C++ for the reader and show the purpose of various C++ features. A box marks the end of each example.

Exercises

The book contains over 500 section review exercises, the answers to which are short answers, code segments, and, in a few cases, entire programs. These exercises are suitable as homework problems or as self-tests. The answers to the odd-numbered exercises are given in the back of the book, and the answers to the even-numbered exercises are given in the Instructor's Guide. Our experience in teaching C++ has convinced us of the importance of these exercises.

The applications covered in the programming exercises at the ends of the chapters include the following:

  • Simulation (Programming Exercise 2.9)
  • Queues (Programming Exercises 3.8 and 7.4)
  • Process synchronization (Programming Exercise 3.10)
  • Databases (Programming Exercise 3.15)
  • Local area networks (Programming Exercises 3.17 and 6.7)
  • Array hierarchy (Programming Exercise 4.4)
  • Dating services (Programming Exercise 5.10)
  • Iterators (Programming Exercises 7.6, 7.7, and 7.8)
  • Scheduling (Programming Exercise 7.14)
  • An indexed file class (Programming Exercise 8.5)
  • A dialog-based application with a graphical-user interface for a system administrator (Programming Exercise 9.9)
Not every reader will be interested in all of these applications; however, we think that it is important to show the variety of problems that C++ can address.

CD-ROM

The book comes with a CD-ROM that has the Student Edition of the current release of Microsoft's Visual C++ Integrated Development Environment, which includes a C++ compiler, a debugger and class browser, help facilities, the Microsoft Foundation Classes and the ActiveX Template Library, and many other resources for applications development. All of our sample applications, including the Microsoft-specific applications of Chapter 9, may be compiled and run under Visual C++.

Instructor Supplement

An Instructor's Guide is available from the publisher at no cost to adopters of this book. The Instructor's Guide contains solutions to even-numbered section exercises, sample syllabi, and transparency masters.

World Wide Web Site

The World Wide Web site

http://condor.depaul.edu/-mkalin

contains the source code, header files, and data files for all of the book's sample applications; the source code for some of the longer examples; sample syllabi; transparencies; a sample chapter; information about using Microsoft Visual C++; additional technical details about the Microsoft Foundation Classes; and an errata list.

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)