Skip to:Content
|
Bottom
Cover image for An introduction to programming using C++
Title:
An introduction to programming using C++
Personal Author:
Publication Information:
Upper Saddle River, NJ : Prentice Hall, 1997
Physical Description:
1 computer disk ; 3 1/2 in
ISBN:
9780132549219
General Note:
Accompanies text of the same title : QA76.73.C153 M36 1997
Added Author:

Available:*

Library
Item Barcode
Call Number
Material Type
Item Category 1
Status
Searching...
30000003818246 DSK 1204 Open Access Computer File Diskette (Open Shelves)
Searching...
Searching...
30000003818287 DSK 1204 Open Access Computer File Diskette (Open Shelves)
Searching...

On Order

Summary

Summary

Aimed specifically at nonprogrammers, this text does not require C programming as a prerequisite. It guides readers through examples and over 300 tested and working programs to develop a firm understanding of the essentials of the C++ programming language. All basic programming concepts are explained (coding mathematical expressions, decision making, loops, and recursion). The text makes no comparisons between C and C++, instead covering all aspects of C++ programming in detail - from fundamental concepts to advanced topics. All C++ source code files are provided for the text's 300+ programs on a companion diskette, allowing readers to begin programming immediately without having to retype the examples from the book. It also provides detailed discussions of objects and classes to train readers in the most common coding methodologies and reveal to them the power of C++.


Table of Contents

1 C++ Fundamentalsp. 1
1.1 The C++ Environmentp. 2
1.2 Why C++?p. 5
1.3 Program Structurep. 7
1.4 Elements of C++p. 11
1.5 The cout Functionp. 14
1.6 Identifying Thingsp. 17
1.7 Declaring Thingsp. 19
1.8 Introduction to C++ Operatorsp. 22
1.9 More coutp. 26
1.10 Getting User Input with cinp. 28
1.11 Program Debugging and Implementation: Common Programming Errorsp. 31
1.12 Application Program: Temperature Conversionp. 36
1.13 Additional Application Programsp. 43
2 Structured Programmingp. 55
2.1 Concepts of a Program Blockp. 56
2.2 Using Functionsp. 60
2.3 Inside a C++ Functionp. 67
2.4 Using Function Argumentsp. 72
2.5 Using #define Statementsp. 82
2.6 Program Debugging and Implementation: Making Your Own Header Filesp. 89
2.7 Application Program: AC Series RL Circuitp. 94
3 Operations on Data and Decision Makingp. 109
3.1 Relational Operatorsp. 110
3.2 The Open Branchp. 114
3.3 The Closed Branchp. 122
3.4 Bitwise Boolean Operationsp. 131
3.5 Logical Operationsp. 138
3.6 Conversion and Type Castingp. 147
3.7 The switch Functionp. 148
3.8 One More switch and the Conditional Operatorp. 159
3.9 Program Debugging and Implementationp. 164
3.10 Application Program: A Robot Troubleshooterp. 166
3.11 Additional Application Programsp. 176
4 Looping and Recursionp. 191
4.1 The for Loopp. 192
4.2 The while Loopp. 198
4.3 The do while Loopp. 202
4.4 Nested Loopsp. 207
4.5 Program Debugging and Implementationp. 212
4.6 Recursionp. 217
4.7 Application Program: Vending Machinep. 220
4.8 Additional Application Programsp. 224
5 Pointers, Scope, and Classp. 239
5.1 Internal Memory Organizationp. 240
5.2 How Memory Is Usedp. 244
5.3 Pointersp. 255
5.4 Passing Variablesp. 263
5.5 Scope of Variablesp. 272
5.6 Variable Classp. 275
5.7 Program Debugging and Implementationp. 279
5.8 Application Programsp. 281
6 Stringsp. 293
6.1 Characters and Stringsp. 294
6.2 Initializing Stringsp. 299
6.3 Passing Strings Between Functionsp. 301
6.4 Working with String Elementsp. 304
6.5 String Handling Functionsp. 309
6.6 String Sortingp. 319
6.7 Application Program: Text Formatterp. 323
6.8 Additional Application Programsp. 330
7 Numeric Arraysp. 349
7.1 Numeric Arraysp. 350
7.2 Introduction to Numeric Array Applicationsp. 358
7.3 Sorting with Numeric Arraysp. 363
7.4 Multidimensional Numeric Arraysp. 382
7.5 Application Programsp. 394
8 Data Structuresp. 413
8.1 Enumerating Typesp. 414
8.2 Naming Your Own Data Typesp. 418
8.3 Introduction to Data Structuresp. 423
8.4 More Data Structure Detailsp. 428
8.5 Using unions and Structure Arraysp. 435
8.6 Ways of Representing Structuresp. 444
8.7 Advanced Data Structuresp. 446
8.8 Application Program: MiniMicrop. 470
8.9 Additional Application Programsp. 473
9 Classes and Objectsp. 495
9.1 Classes and Objectsp. 496
9.2 Constructors and Destructorsp. 501
9.3 Multiple Objects of the Same Classp. 511
9.4 Private Members and Friend Functionsp. 517
9.5 Inheritance, Virtual Functions, and Pure Virtual Functionsp. 524
9.6 Application Program: Card Casinop. 534
9.7 Additional Application Programsp. 541
10 Disk I/Op. 555
10.1 Disk Input and Outputp. 556
10.2 More Disk I/Op. 562
10.3 Streams, File Classes, and Command Line Argumentsp. 576
10.4 Application Program: Parts Databasep. 585
10.5 Additional Application Programsp. 592
Appendix ASCII Character Setp. 601
Answersp. 603
Indexp. 637
Go to:Top of Page