Skip to content

Introduction to Object-Oriented Programming with C++

Best in textbook rentals since 2012!

ISBN-10: 0030236215

ISBN-13: 9780030236211

Edition: 1998

Authors: Anita Millspaugh

List price: $71.00
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

Customers also bought

Book details

List price: $71.00
Copyright year: 1998
Publisher: Dryden Press
Binding: Paperback
Pages: 272
Size: 8.25" wide x 10.75" long x 0.50" tall
Weight: 1.298
Language: English

An Introduction to C++p. 1
Chapter Objectivesp. 1
Chapter Overviewp. 1
The History of C++p. 1
Object-Oriented Programmingp. 2
Characteristics of an OOP Languagep. 2
Advantages of C++p. 3
Portabilityp. 3
A Large Selection of Operatorsp. 3
Flexibilityp. 3
Disadvantages of C++p. 3
Cryptic Appearancep. 3
Operator Confusionp. 3
Misused Pointer Accessp. 4
Running a C++ Programp. 4
Editors, Compilers, and Linkersp. 4
A First Programp. 4
The main() Functionp. 5
The Include Directivep. 6
Outputp. 6
Screen Outputp. 6
Advancing to a New Linep. 7
Ending a Line with endlp. 8
Sending Output to the Printerp. 9
Skipping Blank Linesp. 10
Documentationp. 11
Dividing a Program Into Partsp. 12
Creating Functionsp. 12
Declaring a Functionp. 12
Defining a Functionp. 12
Calling the Function You Createp. 13
Having Trouble Getting Printer Output?p. 14
Programming Stylep. 14
Programming/Debugging Hintp. 15
Key Termsp. 16
Summaryp. 16
Review Questionsp. 16
Exercisesp. 17
Hayley Office Suppliesp. 17
Basic Data Types and Structuresp. 19
Chapter Objectivesp. 19
Chapter Overviewp. 19
Data Items and Data Typesp. 19
Constants and Literalsp. 20
Identifiersp. 21
Named Constantsp. 22
Variablesp. 23
Declaring a Variablep. 23
String Variablesp. 23
Declaring Multiple Variables of the Same Typep. 24
Location of Declarationsp. 24
Initializing Variablesp. 25
Initializing String Variablesp. 25
Multiple Variables and Initializationp. 25
Assigning Values to a Variablep. 26
Assigning a Value to Multiple Variablesp. 26
Assigning Values to a String Variablep. 27
Moving a Portion of a Stringp. 28
Printing Variablesp. 28
Formatting Datap. 29
Column Widthp. 29
Justificationp. 29
Avoiding Exponential Format of Numbersp. 29
Combining Multiple Flags and Manipulatorsp. 29
Precision of Decimal Numbersp. 30
Resetting Manipulatorsp. 31
Setting the Manipulators Before the Print Linep. 31
Entering Datap. 32
Solving the Skipped String Entry Problemp. 32
Promptsp. 33
Structuresp. 35
Structure Variablesp. 36
Size of a Structurep. 37
Referring to a Field within a Structurep. 37
Structures within Structuresp. 38
Programming Stylep. 40
Key Termsp. 40
Chapter Summaryp. 41
Review Questionsp. 41
Exercisesp. 41
Hayley Office Suppliesp. 43
Creating Objectsp. 45
Chapter Objectivesp. 45
Chapter Overviewp. 45
Creating Data Types Containing Functionsp. 45
A Structure with a Member Functionp. 46
Functions Defined Outside of the Structure Declarationp. 46
Use of Properties by Methodsp. 47
Classesp. 47
Objectsp. 47
Constructorsp. 48
Inline Functionsp. 49
Data Types for Functionsp. 50
Returning a Value from a Functionp. 51
Using the Return Value from a Functionp. 51
Constructors with Argumentsp. 54
Overloading Constructorsp. 55
Default Valuesp. 57
Overloading Operatorsp. 57
Destructorsp. 58
Naming a Destructor Functionp. 58
Contents of a Destructorp. 58
Programming Hintp. 58
Creating Header Filesp. 59
Implied Objectp. 60
Key Termsp. 61
Chapter Summaryp. 61
Review Questionsp. 61
Exercisesp. 61
Hayley Office Suppliesp. 62
Processing Data: Calculationsp. 63
Chapter Overviewp. 63
Arithmetic Operatorsp. 63
Binary Operatorsp. 63
Precedence of Operatorsp. 64
Modulusp. 65
Unary Operatorsp. 66
Increment Operatorp. 66
Decrement Operatorp. 66
Prefix versus Postfixp. 66
Another Look at Precedencep. 67
Assignment Operatorsp. 68
Precedencep. 70
Mixing Data Types in Calculationsp. 70
The sizeof Operatorp. 72
Exponentiationp. 72
Using Calculations in a Methodp. 73
Manipulating String Datap. 73
Combining String Fields--Concatenationp. 73
Concatenating the Beginning of a Stringp. 74
Key Termsp. 78
Chapter Summaryp. 78
Review Questionsp. 78
Exercisesp. 78
Hayley Office Suppliesp. 81
Decisionsp. 83
Chapter Objectivesp. 83
Chapter Overviewp. 83
Making Comparisons Using Relational Operatorsp. 83
Comparing Numeric Datap. 84
Comparing Character Datap. 84
Implied Conditions--True or Falsep. 86
The Logical Operatorsp. 86
Precedence of And and Or in Compound Conditionsp. 87
String Comparisonsp. 88
Comparaing a Specified Number of Charactersp. 88
Comparing Strings and Ignoring the Casep. 89
Finding the Length of a Stringp. 89
Decisions--The if Statementp. 90
Using if in a Member Functionp. 93
Nested if Statementsp. 93
Compound Conditionsp. 94
Conditional Operatorp. 96
Precedence of Assignment, Logical, and Relational Operatorsp. 100
Combining Assignment and Increment Operatorsp. 101
Combining Increment and Logical Operatorsp. 102
Programming Stylep. 104
Key Termsp. 105
Chapter Summaryp. 105
Review Questionsp. 105
Exercisesp. 106
Hayley Office Suppliesp. 108
Loops and Arraysp. 109
Chapter Objectivesp. 109
Chapter Overviewp. 109
Loopsp. 109
The while Loopp. 110
Infinite Loopsp. 110
Priming Inputp. 111
The do loopp. 113
The for Loopp. 114
Multiple Initialization, Condition, or Actionp. 116
Nested Loopsp. 118
Highest/Lowest Logic Using the ifp. 120
Single Dimension Arraysp. 121
Declaring an Arrayp. 122
Initializing an Arrayp. 122
Initializing an Array of Unspecified Sizep. 122
Partially Filled Arrayp. 123
Subscriptsp. 123
for Loops and Arraysp. 124
Using a for Loop on Partially Filled Arraysp. 125
A Report Programp. 128
Key Termsp. 131
Chapter Summaryp. 132
Review Questionsp. 132
Exercisesp. 133
Hayley Office Suppliesp. 136
Creating Menu Programs Using the switch Statementp. 137
Chapter Objectivesp. 137
Chapter Overviewp. 137
The switch Statementp. 137
Breakp. 138
More than One Alternative for a Casep. 138
Using the switch for a Range of Valuesp. 143
Menu Programsp. 145
Structure of a Menu Programp. 146
Using Letters or Numbers for Menu Optionsp. 149
Menu Hintsp. 151
Creating a More Generic Menu Classp. 153
Running Executable Files or DOS Commands from the Menup. 156
Clearing the Screenp. 157
Using Menu Barsp. 158
Programming/Debugging Hintp. 161
Reverse Videop. 161
Printersp. 162
Key Termsp. 162
Chapter Summaryp. 162
Review Questionsp. 162
Exercisesp. 163
Hayley Office Supplyp. 164
Pointersp. 165
Chapter Objectivesp. 165
Chapter Overviewp. 165
Pointer Variablesp. 165
Pointer Operatorsp. 166
Declaring a Pointerp. 166
Assigning a Pointer to the Address of a Variablep. 166
Combining Declaration and Assignment of Pointersp. 167
Dereferencing a Pointer Variablep. 168
A Pointer Contains an Integerp. 168
Summary of Pointer Characteristicsp. 170
Pointers to Pointers and Levels of Indirectionp. 170
Decreases, and Increasesp. 171
Pointers as Function Argumentsp. 172
Function Call by Reference to a Local Variable Addressp. 173
Reference Operatorp. 174
Passing Addresses of Functionsp. 175
Menu Revisitedp. 176
The Header Filep. 176
The MENU Programp. 178
Multiple Level Menusp. 179
Inheritancep. 180
Key Termsp. 186
Chapter Summaryp. 186
Review Questionsp. 186
Exercisesp. 186
Hayley Office Suppliesp. 187
Pointers and Arraysp. 189
Chapter Objectivesp. 189
Chapter Overviewp. 189
Pointer Calculationsp. 190
Pointers and Arraysp. 191
Accessing a Single-Dimensional Array with Pointersp. 192
Accessing a String Using Pointersp. 192
Multidimensional Arraysp. 193
Initializing Multidimensional Arraysp. 194
Accessing a Two-Level Array with Nested Loopsp. 194
Multidimensional Arrays and Pointersp. 196
Pointers to Pointers and Multidimensional Arraysp. 196
Incrementing the Pointersp. 197
Accessing a Multidimensional Array with Pointersp. 198
Accessing a Multidimensional Array as a Single Arrayp. 198
Accessing Data in an Arrayp. 199
Searching an Arrayp. 200
Serial Searchp. 200
Binary Searchp. 203
Sorting Data in an Arrayp. 208
An Exchange Sortp. 208
Using the qsort() Functionp. 209
The Compare Function in qsort() and bsearch()p. 211
Pointers and Structuresp. 212
The new and delete Operatorsp. 215
Programming/Debugging Tipp. 217
Key Termsp. 217
Chapter Summaryp. 217
Review Questionsp. 218
Exercisesp. 218
Hayley Office Suppliesp. 222
File Input/Output Using Structuresp. 223
Chapter Objectivesp. 223
Chapter Overviewp. 223
Sequential vs. Random File Accessp. 223
Using Structures in Data Filesp. 224
Random File Accessp. 224
Data Filesp. 224
File Modesp. 224
Attaching a File to a streamp. 225
The open() functionp. 225
Closing a Filep. 226
Testing If the File Existsp. 227
Writing to the Filep. 227
Reading Data from a Disk Filep. 228
The seekp() functionp. 229
The seekg() functionp. 229
The tellg() Functionp. 229
Updating a Random Filep. 230
The Class for the Filep. 231
The Write Routinep. 232
The Read Routinep. 233
Using the Same Screenp. 233
Adding Records to the Filep. 234
Deleting or Editing a Recordp. 234
Flagging a Record for Deletep. 235
Using a Delete Codep. 235
Editing Recordsp. 237
Listing Records from the Filep. 239
Printing to the Screenp. 240
Printing to the Printerp. 240
The List Routinep. 240
Replacing Deleted Record Positions during Addp. 242
Complete Update Classp. 242
Programming/Debugging Tipp. 255
Hash Addressingp. 255
Hashing Algorithmp. 255
Key Termsp. 257
Chapter Summaryp. 258
Review Questionsp. 258
Exercisesp. 258
Hayley Office Suppliesp. 261
Table of Contents provided by Syndetics. All Rights Reserved.