www.gibmonks.com

Main Page

Previous Page
Next Page

   
Book Cover
  
• Table of Contents
• Index
C++ How to Program, Fifth Edition
By H. M. Deitel -  Deitel & Associates, Inc., P. J. Deitel -  Deitel & Associates, Inc.
Publisher: Prentice Hall
Pub Date: January 05, 2005
Print ISBN-10: 0-13-185757-6
eText ISBN-10: 0-13-186103-4
Print ISBN-13: 978-0-13-185757-5
eText ISBN-13: 978-0-13-186103-9
Pages: 1536
 


   Copyrightiv
   Deitel® Books, Cyber Classrooms, Complete Training Courses and Web-Based Training Courses published by Prentice Hallii
   Prefacexxiii
      Features of C++ How to Program, 5/exxiii
      Teaching Approachxxvii
      Tour of the Bookxxxi
      Object-Oriented Design of an ATM with the UML: A Tour of the Optional Software Engineering Case Studyxliv
      Software Bundled with C++ How to Program, 5/exlvi
      Teaching Resources for C++ How to Program, 5/exlix
      C++ Multimedia Cyber Classroom, 5/e, Onlinexlix
      C++ in the Labxlix
      CourseCompassSM, WebCT™ and Blackboard™li
      PearsonChoiceslii
      The Deitel® Buzz Online Free E-mail Newsletterliii
      Acknowledgmentsliii
      About the Authorslvi
      About Deitel & Associates, Inc.lvii
   Before You Beginlix
      Resources on the CD That Accompanies C++ How to Program, Fifth Editionlix
      Copying and Organizing Fileslix
      Copying the Book Examples from the CDlx
      Changing the Read-Only Property of Fileslx
    Chapter 1.  Introduction to Computers, the Internet and World Wide Web1
      Section 1.1.  Introduction2
      Section 1.2.  What Is a Computer?3
      Section 1.3.  Computer Organization4
      Section 1.4.  Early Operating Systems5
      Section 1.5.  Personal, Distributed and Client/Server Computing5
      Section 1.6.  The Internet and the World Wide Web6
      Section 1.7.  Machine Languages, Assembly Languages and High-Level Languages6
      Section 1.8.  History of C and C++8
      Section 1.9.  C++ Standard Library8
      Section 1.10.  History of Java9
      Section 1.11.  FORTRAN, COBOL, Pascal and Ada10
      Section 1.12.  Basic, Visual Basic, Visual C++, C# and .NET11
      Section 1.13.  Key Software Trend: Object Technology11
      Section 1.14.  Typical C++ Development Environment12
      Section 1.15.  Notes About C++ and C++ How to Program, 5/e15
      Section 1.16.  Test-Driving a C++ Application16
      Section 1.17.  Software Engineering Case Study: Introduction to Object Technology and the UML (Required)22
      Section 1.18.  Wrap-Up27
      Section 1.19.  Web Resources27
      Summary29
      Terminology31
      Self-Review Exercises33
      Answers to Self-Review Exercises34
      Exercises34
    Chapter 2.  Introduction to C++ Programming36
      Section 2.1.  Introduction37
      Section 2.2.  First Program in C++: Printing a Line of Text37
      Section 2.3.  Modifying Our First C++ Program41
      Section 2.4.  Another C++ Program: Adding Integers42
      Section 2.5.  Memory Concepts46
      Section 2.6.  Arithmetic48
      Section 2.7.  Decision Making: Equality and Relational Operators51
      Section 2.8.  (Optional) Software Engineering Case Study: Examining the ATM Requirements Document56
      Section 2.9.  Wrap-Up65
      Summary65
      Terminology67
      Self-Review Exercises68
      Answers to Self-Review Exercises69
      Exercises70
    Chapter 3.  Introduction to Classes and Objects74
      Section 3.1.  Introduction75
      Section 3.2.  Classes, Objects, Member Functions and Data Members75
      Section 3.3.  Overview of the Chapter Examples77
      Section 3.4.  Defining a Class with a Member Function77
      Section 3.5.  Defining a Member Function with a Parameter81
      Section 3.6.  Data Members, set Functions and get Functions84
      Section 3.7.  Initializing Objects with Constructors91
      Section 3.8.  Placing a Class in a Separate File for Reusability95
      Section 3.9.  Separating Interface from Implementation99
      Section 3.10.  Validating Data with set Functions105
      Section 3.11.  (Optional) Software Engineering Case Study: Identifying the Classes in the ATM Requirements Document110
      Section 3.12.  Wrap-Up118
      Summary118
      Terminology121
      Self-Review Exercises121
      Answers to Self-Review Exercises122
      Exercises122
    Chapter 4.  Control Statements: Part 1124
      Section 4.1.  Introduction125
      Section 4.2.  Algorithms125
      Section 4.3.  Pseudocode126
      Section 4.4.  Control Structures127
      Section 4.5.  if Selection Statement131
      Section 4.6.  if...else Double-Selection Statement132
      Section 4.7.  while Repetition Statement137
      Section 4.8.  Formulating Algorithms: Counter-Controlled Repetition139
      Section 4.9.  Formulating Algorithms: Sentinel-Controlled Repetition145
      Section 4.10.  Formulating Algorithms: Nested Control Statements156
      Section 4.11.  Assignment Operators161
      Section 4.12.  Increment and Decrement Operators161
      Section 4.13.  (Optional) Software Engineering Case Study: Identifying Class Attributes in the ATM System165
      Section 4.14.  Wrap-Up169
      Summary170
      Terminology172
      Self-Review Exercises173
      Answers to Self-Review Exercises174
      Exercises177
    Chapter 5.  Control Statements: Part 2185
      Section 5.1.  Introduction186
      Section 5.2.  Essentials of Counter-Controlled Repetition186
      Section 5.3.  for Repetition Statement188
      Section 5.4.  Examples Using the for Statement193
      Section 5.5.  do...while Repetition Statement197
      Section 5.6.  switch Multiple-Selection Statement199
      Section 5.7.  break and continue Statements209
      Section 5.8.  Logical Operators211
      Section 5.9.  Confusing Equality (==) and Assignment (=) Operators216
      Section 5.10.  Structured Programming Summary217
      Section 5.11.  (Optional) Software Engineering Case Study: Identifying Objects' States and Activities in the ATM System222
      Section 5.12.  Wrap-Up226
      Summary228
      Terminology230
      Self-Review Exercises230
      Answers to Self-Review Exercises231
      Exercises233
    Chapter 6.  Functions and an Introduction to Recursion238
      Section 6.1.  Introduction239
      Section 6.2.  Program Components in C++240
      Section 6.3.  Math Library Functions241
      Section 6.4.  Function Definitions with Multiple Parameters243
      Section 6.5.  Function Prototypes and Argument Coercion248
      Section 6.6.  C++ Standard Library Header Files250
      Section 6.7.  Case Study: Random Number Generation252
      Section 6.8.  Case Study: Game of Chance and Introducing enum258
      Section 6.9.  Storage Classes262
      Section 6.10.  Scope Rules265
      Section 6.11.  Function Call Stack and Activation Records268
      Section 6.12.  Functions with Empty Parameter Lists272
      Section 6.13.  Inline Functions273
      Section 6.14.  References and Reference Parameters275
      Section 6.15.  Default Arguments280
      Section 6.16.  Unary Scope Resolution Operator282
      Section 6.17.  Function Overloading283
      Section 6.18.  Function Templates286
      Section 6.19.  Recursion288
      Section 6.20.  Example Using Recursion: Fibonacci Series292
      Section 6.21.  Recursion vs. Iteration295
      Section 6.22.  (Optional) Software Engineering Case Study: Identifying Class Operations in the ATM System298
      Section 6.23.  Wrap-Up305
      Summary306
      Terminology309
      Self-Review Exercises311
      Answers to Self-Review Exercises313
      Exercises316
    Chapter 7.  Arrays and Vectors326
      Section 7.1.  Introduction327
      Section 7.2.  Arrays328
      Section 7.3.  Declaring Arrays329
      Section 7.4.  Examples Using Arrays330
      Section 7.5.  Passing Arrays to Functions346
      Section 7.6.  Case Study: Class GradeBook Using an Array to Store Grades351
      Section 7.7.  Searching Arrays with Linear Search358
      Section 7.8.  Sorting Arrays with Insertion Sort359
      Section 7.9.  Multidimensional Arrays362
      Section 7.10.  Case Study: Class GradeBook Using a Two-Dimensional Array365
      Section 7.11.  Introduction to C++ Standard Library Class Template vector372
      Section 7.12.  (Optional) Software Engineering Case Study: Collaboration Among Objects in the ATM System377
      Section 7.13.  Wrap-Up385
      Summary385
      Terminology387
      Self-Review Exercises388
      Answers to Self-Review Exercises389
      Exercises390
      Recursion Exercises400
      vector Exercises400
    Chapter 8.  Pointers and Pointer-Based Strings401
      Section 8.1.  Introduction402
      Section 8.2.  Pointer Variable Declarations and Initialization403
      Section 8.3.  Pointer Operators404
      Section 8.4.  Passing Arguments to Functions by Reference with Pointers407
      Section 8.5.  Using const with Pointers411
      Section 8.6.  Selection Sort Using Pass-by-Reference418
      Section 8.7.  sizeof Operators421
      Section 8.8.  Pointer Expressions and Pointer Arithmetic424
      Section 8.9.  Relationship Between Pointers and Arrays427
      Section 8.10.  Arrays of Pointers431
      Section 8.11.  Case Study: Card Shuffling and Dealing Simulation432
      Section 8.12.  Function Pointers438
      Section 8.13.  Introduction to Pointer-Based String Processing443
      Section 8.14.  Wrap-Up454
      Summary455
      Terminology456
      Self-Review Exercises457
      Answers to Self-Review Exercises459
      Exercises461
      Special Section: Building Your Own Computer464
      More Pointer Exercises469
      String-Manipulation Exercises474
      Special Section: Advanced String-Manipulation Exercises475
      A Challenging String-Manipulation Project479
    Chapter 9.  Classes: A Deeper Look, Part 1480
      Section 9.1.  Introduction481
      Section 9.2.  Time Class Case Study482
      Section 9.3.  Class Scope and Accessing Class Members487
      Section 9.4.  Separating Interface from Implementation489
      Section 9.5.  Access Functions and Utility Functions491
      Section 9.6.  Time Class Case Study: Constructors with Default Arguments493
      Section 9.7.  Destructors499
      Section 9.8.  When Constructors and Destructors Are Called500
      Section 9.9.  Time Class Case Study: A Subtle TrapReturning a Reference to a private Data Member503
      Section 9.10.  Default Memberwise Assignment506
      Section 9.11.  Software Reusability508
      Section 9.12.  (Optional) Software Engineering Case Study: Starting to Program the Classes of the ATM System509
      Section 9.13.  Wrap-Up516
      Summary517
      Terminology519
      Self-Review Exercises519
      Answers to Self-Review Exercises520
      Exercises520
    Chapter 10.  Classes: A Deeper Look, Part 2523
      Section 10.1.  Introduction524
      Section 10.2.  const (Constant) Objects and const Member Functions524
      Section 10.3.  Composition: Objects as Members of Classes534
      Section 10.4.  friend Functions and friend Classes541
      Section 10.5.  Using the this Pointer545
      Section 10.6.  Dynamic Memory Management with Operators new and delete550
      Section 10.7.  static Class Members552
      Section 10.8.  Data Abstraction and Information Hiding558
      Section 10.9.  Container Classes and Iterators561
      Section 10.10.  Proxy Classes562
      Section 10.11.  Wrap-Up565
      Summary566
      Terminology567
      Self-Review Exercises568
      Answers to Self-Review Exercises569
      Exercises569
    Chapter 11.  Operator Overloading; String and Array Objects571
      Section 11.1.  Introduction572
      Section 11.2.  Fundamentals of Operator Overloading573
      Section 11.3.  Restrictions on Operator Overloading574
      Section 11.4.  Operator Functions as Class Members vs. Global Functions576
      Section 11.5.  Overloading Stream Insertion and Stream Extraction Operators577
      Section 11.6.  Overloading Unary Operators581
      Section 11.7.  Overloading Binary Operators581
      Section 11.8.  Case Study: Array Class582
      Section 11.9.  Converting between Types594
      Section 11.10.  Case Study: String Class595
      Section 11.11.  Overloading ++ and --607
      Section 11.12.  Case Study: A Date Class609
      Section 11.13.  Standard Library Class string613
      Section 11.14.  explicit Constructors617
      Section 11.15.  Wrap-Up621
      Summary621
      Terminology624
      Self-Review Exercises624
      Answers to Self-Review Exercises625
      Exercises625
    Chapter 12.  Object-Oriented Programming: Inheritance633
      Section 12.1.  Introduction634
      Section 12.2.  Base Classes and Derived Classes635
      Section 12.3.  protected Members638
      Section 12.4.  Relationship between Base Classes and Derived Classes638
      Section 12.5.  Constructors and Destructors in Derived Classes670
      Section 12.6.  public, protected and private Inheritance678
      Section 12.7.  Software Engineering with Inheritance678
      Section 12.8.  Wrap-Up680
      Summary681
      Terminology682
      Self-Review Exercises682
      Answers to Self-Review Exercises683
      Exercises683
    Chapter 13.  Object-Oriented Programming: Polymorphism686
      Section 13.1.  Introduction687
      Section 13.2.  Polymorphism Examples689
      Section 13.3.  Relationships Among Objects in an Inheritance Hierarchy690
      Section 13.4.  Type Fields and switch Statements707
      Section 13.5.  Abstract Classes and Pure virtual Functions708
      Section 13.6.  Case Study: Payroll System Using Polymorphism710
      Section 13.7.  (Optional) Polymorphism, Virtual Functions and Dynamic Binding "Under the Hood"728
      Section 13.8.  Case Study: Payroll System Using Polymorphism and Run-Time Type Information with Downcasting, dynamic_cast, typeid and type_info732
      Section 13.9.  Virtual Destructors735
      Section 13.10.  (Optional) Software Engineering Case Study: Incorporating Inheritance into the ATM System736
      Section 13.11.  Wrap-Up744
      Summary744
      Terminology746
      Self-Review Exercises746
      Answers to Self-Review Exercises747
      Exercises747
    Chapter 14.  Templates749
      Section 14.1.  Introduction750
      Section 14.2.  Function Templates751
      Section 14.3.  Overloading Function Templates754
      Section 14.4.  Class Templates754
      Section 14.5.  Nontype Parameters and Default Types for Class Templates761
      Section 14.6.  Notes on Templates and Inheritance762
      Section 14.7.  Notes on Templates and Friends762
      Section 14.8.  Notes on Templates and static Members763
      Section 14.9.  Wrap-Up764
      Summary764
      Terminology765
      Self-Review Exercises766
      Answers to Self-Review Exercises766
      Exercises766
    Chapter 15.  Stream Input/Output769
      Section 15.1.  Introduction770
      Section 15.2.  Streams771
      Section 15.3.  Stream Output775
      Section 15.4.  Stream Input776
      Section 15.5.  Unformatted I/O using read, write and gcount780
      Section 15.6.  Introduction to Stream Manipulators781
      Section 15.7.  Stream Format States and Stream Manipulators787
      Section 15.8.  Stream Error States797
      Section 15.9.  Tying an Output Stream to an Input Stream800
      Section 15.10.  Wrap-Up800
      Summary800
      Terminology803
      Self-Review Exercises804
      Answers to Self-Review Exercises806
      Exercises808
    Chapter 16.  Exception Handling810
      Section 16.1.  Introduction811
      Section 16.2.  Exception-Handling Overview812
      Section 16.3.  Example: Handling an Attempt to Divide by Zero812
      Section 16.4.  When to Use Exception Handling819
      Section 16.5.  Rethrowing an Exception820
      Section 16.6.  Exception Specifications821
      Section 16.7.  Processing Unexpected Exceptions822
      Section 16.8.  Stack Unwinding823
      Section 16.9.  Constructors, Destructors and Exception Handling824
      Section 16.10.  Exceptions and Inheritance825
      Section 16.11.  Processing new Failures825
      Section 16.12.  Class auto_ptr and Dynamic Memory Allocation829
      Section 16.13.  Standard Library Exception Hierarchy832
      Section 16.14.  Other Error-Handling Techniques834
      Section 16.15.  Wrap-Up834
      Summary835
      Terminology837
      Self-Review Exercises838
      Answers to Self-Review Exercises838
      Exercises839
    Chapter 17.  File Processing841
      Section 17.1.  Introduction842
      Section 17.2.  The Data Hierarchy842
      Section 17.3.  Files and Streams844
      Section 17.4.  Creating a Sequential File845
      Section 17.5.  Reading Data from a Sequential File849
      Section 17.6.  Updating Sequential Files856
      Section 17.7.  Random-Access Files856
      Section 17.8.  Creating a Random-Access File857
      Section 17.9.  Writing Data Randomly to a Random-Access File862
      Section 17.10.  Reading from a Random-Access File Sequentially864
      Section 17.11.  Case Study: A Transaction-Processing Program867
      Section 17.12.  Input/Output of Objects874
      Section 17.13.  Wrap-Up874
      Summary874
      Terminology876
      Self-Review Exercises876
      Answers to Self-Review Exercises877
      Exercises878
    Chapter 18.  Class string and String Stream Processing883
      Section 18.1.  Introduction884
      Section 18.2.  string Assignment and Concatenation885
      Section 18.3.  Comparing strings887
      Section 18.4.  Substrings890
      Section 18.5.  Swapping strings891
      Section 18.6.  string Characteristics892
      Section 18.7.  Finding Strings and Characters in a string894
      Section 18.8.  Replacing Characters in a string896
      Section 18.9.  Inserting Characters into a string898
      Section 18.10.  Conversion to C-Style Pointer-Based char * Strings899
      Section 18.11.  Iterators901
      Section 18.12.  String Stream Processing902
      Section 18.13.  Wrap-Up905
      Summary906
      Terminology907
      Self-Review Exercises907
      Answers to Self-Review Exercises908
      Exercises908
    Chapter 19.  Web Programming911
      Section 19.1.  Introduction912
      Section 19.2.  HTTP Request Types913
      Section 19.3.  Multitier Architecture914
      Section 19.4.  Accessing Web Servers915
      Section 19.5.  Apache HTTP Server916
      Section 19.6.  Requesting XHTML Documents917
      Section 19.7.  Introduction to CGI917
      Section 19.8.  Simple HTTP Transactions918
      Section 19.9.  Simple CGI Scripts920
      Section 19.10.  Sending Input to a CGI Script928
      Section 19.11.  Using XHTML Forms to Send Input928
      Section 19.12.  Other Headers938
      Section 19.13.  Case Study: An Interactive Web Page939
      Section 19.14.  Cookies943
      Section 19.15.  Server-Side Files949
      Section 19.16.  Case Study: Shopping Cart954
      Section 19.17.  Wrap-Up969
      Section 19.18.  Internet and Web Resources969
      Summary970
      Terminology972
      Self-Review Exercises973
      Answers to Self-Review Exercises973
      Exercises974
    Chapter 20.  Searching and Sorting975
      Section 20.1.  Introduction976
      Section 20.2.  Searching Algorithms976
      Section 20.3.  Sorting Algorithms982
      Section 20.4.  Wrap-Up992
      Summary992
      Terminology994
      Self-Review Exercises994
      Answers to Self-Review Exercises995
      Exercises995
    Chapter 21.  Data Structures998
      Section 21.1.  Introduction999
      Section 21.2.  Self-Referential Classes1000
      Section 21.3.  Dynamic Memory Allocation and Data Structures1001
      Section 21.4.  Linked Lists1001
      Section 21.5.  Stacks1016
      Section 21.6.  Queues1021
      Section 21.7.  Trees1025
      Section 21.8.  Wrap-Up1033
      Summary1034
      Terminology1035
      Self-Review Exercises1036
      Answers to Self-Review Exercises1037
      Exercises1038
      Special Section: Building Your Own Compiler1043
    Chapter 22.  Bits, Characters, C-Strings and structs1057
      Section 22.1.  Introduction1058
      Section 22.2.  Structure Definitions1058
      Section 22.3.  Initializing Structures1061
      Section 22.4.  Using Structures with Functions1061
      Section 22.5.  typedef1061
      Section 22.6.  Example: High-Performance Card Shuffling and Dealing Simulation1062
      Section 22.7.  Bitwise Operators1065
      Section 22.8.  Bit Fields1074
      Section 22.9.  Character-Handling Library1078
      Section 22.10.  Pointer-Based String-Conversion Functions1084
      Section 22.11.  Search Functions of the Pointer-Based String-Handling Library1089
      Section 22.12.  Memory Functions of the Pointer-Based String-Handling Library1094
      Section 22.13.  Wrap-Up1099
      Summary1099
      Terminology1101
      Self-Review Exercises1102
      Answers to Self-Review Exercises1103
      Exercises1104
    Chapter 23.  Standard Template Library (STL)1110
      Section 23.1.  Introduction to the Standard Template Library (STL)1112
      Section 23.2.  Sequence Containers1124
      Section 23.3.  Associative Containers1138
      Section 23.4.  Container Adapters1147
      Section 23.5.  Algorithms1152
      Section 23.6.  Class bitset1183
      Section 23.7.  Function Objects1187
      Section 23.8.  Wrap-Up1190
      Section 23.9.  STL Internet and Web Resources1191
      Summary1192
      Terminology1196
      Self-Review Exercises1197
      Answers to Self-Review Exercises1198
      Exercises1198
      Recommended Reading1199
    Chapter 24.  Other Topics1200
      Section 24.1.  Introduction1201
      Section 24.2.  const_cast Operator1201
      Section 24.3.  namespaces1203
      Section 24.4.  Operator Keywords1207
      Section 24.5.  mutable Class Members1209
      Section 24.6.  Pointers to Class Members (.* and ->*)1211
      Section 24.7.  Multiple Inheritance1213
      Section 24.8.  Multiple Inheritance and virtual Base Classes1218
      Section 24.9.  Wrap-Up1222
      Section 24.10.  Closing Remarks1223
      Summary1223
      Terminology1225
      Self-Review Exercises1225
      Answers to Self-Review Exercises1226
      Exercises1226
    Appendix A.  Operator Precedence and Associativity Chart1228
      Section A.1.  Operator Precedence1228
    Appendix B.  ASCII Character Set1231
    Appendix C.  Fundamental Types1232
    Appendix D.  Number Systems1234
      Section D.1.  Introduction1235
      Section D.2.  Abbreviating Binary Numbers as Octal and Hexadecimal Numbers1238
      Section D.3.  Converting Octal and Hexadecimal Numbers to Binary Numbers1239
      Section D.4.  Converting from Binary, Octal or Hexadecimal to Decimal1239
      Section D.5.  Converting from Decimal to Binary, Octal or Hexadecimal1240
      Section D.6.  Negative Binary Numbers: Two's Complement Notation1242
      Summary1243
      Terminology1243
      Self-Review Exercises1244
      Answers to Self-Review Exercises1245
      Exercises1246
    Appendix E.  C Legacy Code Topics1247
      Section E.1.  Introduction1248
      Section E.2.  Redirecting Input/Output on UNIX/LINUX/Mac OS X and Windows Systems1248
      Section E.3.  Variable-Length Argument Lists1249
      Section E.4.  Using Command-Line Arguments1252
      Section E.5.  Notes on Compiling Multiple-Source-File Programs1253
      Section E.6.  Program Termination with exit and atexit1255
      Section E.7.  The volatile Type Qualifier1257
      Section E.8.  Suffixes for Integer and Floating-Point Constants1257
      Section E.9.  Signal Handling1257
      Section E.10.  Dynamic Memory Allocation with calloc and realloc1260
      Section E.11.  The Unconditional Branch: goto1261
      Section E.12.  Unions1262
      Section E.13.  Linkage Specifications1265
      Section E.14.  Wrap-Up1266
      Summary1267
      Terminology1269
      Self-Review Exercises1269
      Answers to Self-Review Exercises1270
      Exercises1270
    Appendix F.  Preprocessor1272
      Section F.1.  Introduction1273
      Section F.2.  The #include Preprocessor Directive1273
      Section F.3.  The #define Preprocessor Directive: Symbolic Constants1274
      Section F.4.  The #define Preprocessor Directive: Macros1275
      Section F.5.  Conditional Compilation1277
      Section F.6.  The #error and #pragma Preprocessor Directives1278
      Section F.7.  The # and ## Operators1278
      Section F.8.  Predefined Symbolic Constants1279
      Section F.9.  Assertions1279
      Section F.10.  Wrap-Up1280
      Summary1280
      Terminology1281
      Self-Review Exercises1281
      Answers to Self-Review Exercises1282
      Exercises1283
    Appendix G.  ATM Case Study Code1285
      Section G.1.  ATM Case Study Implementation1285
      Section G.2.  Class ATM1286
      Section G.3.  Class Screen1293
      Section G.4.  Class Keypad1294
      Section G.5.  Class CashDispenser1295
      Section G.6.  Class DepositSlot1297
      Section G.7.  Class Account1298
      Section G.8.  Class BankDatabase1300
      Section G.9.  Class Transaction1304
      Section G.10.  Class BalanceInquiry1306
      Section G.11.  Class Withdrawal1308
      Section G.12.  Class Deposit1313
      Section G.13.  Test Program ATMCaseStudy.cpp1316
      Section G.14.  Wrap-Up1317
    Appendix H.  UML 2: Additional Diagram Types1318
      Section H.1.  Introduction1318
      Section H.2.  Additional Diagram Types1318
    Appendix I.  C++ Internet and Web Resources1320
      Section I.1.  Resources1320
      Section I.2.  Tutorials1322
      Section I.3.  FAQs1322
      Section I.4.  Visual C++1322
      Section I.5.  Newsgroups1323
      Section I.6.  Compilers and Development Tools1323
      Section I.7.  Standard Template Library1324
    Appendix J.  Introduction to XHTML1325
      Section J.1.  Introduction1326
      Section J.2.  Editing XHTML1326
      Section J.3.  First XHTML Example1327
      Section J.4.  Headers1330
      Section J.5.  Linking1331
      Section J.6.  Images1333
      Section J.7.  Special Characters and More Line Breaks1338
      Section J.8.  Unordered Lists1340
      Section J.9.  Nested and Ordered Lists1340
      Section J.10.  Basic XHTML Tables1341
      Section J.11.  Intermediate XHTML Tables and Formatting1346
      Section J.12.  Basic XHTML Forms1349
      Section J.13.  More Complex XHTML Forms1352
      Section J.14.  Internet and World Wide Web Resources1359
      Summary1359
      Terminology1361
    Appendix K.  XHTML Special Characters1363
    Appendix L.  Using the Visual Studio .NET Debugger1364
      Section L.1.  Introduction1365
      Section L.2.  Breakpoints and the Continue Command1365
      Section L.3.  The Locals and Watch Windows1371
      Section L.4.  Controlling Execution Using the Step Into, Step Over, Step Out and Continue Commands1374
      Section L.5.  The Autos Window1377
      Section L.6.  Wrap-Up1378
      Summary1379
      Terminology1380
      Self-Review Exercises1380
      Answers to Self-Review Exercises1380
    Appendix M.  Using the GNU C++ Debugger1381
      Section M.1.  Introduction1382
      Section M.2.  Breakpoints and the run, stop, continue and print Commands1382
      Section M.3.  The print and set Commands1389
      Section M.4.  Controlling Execution Using the step, finish and next Commands1391
      Section M.5.  The watch Command1393
      Section M.6.  Wrap-Up1396
      Summary1397
      Terminology1398
      Self-Review Exercises1398
      Answers to Self-Review Exercises1398
   Bibliography1399
   End User License AgreementsEULA-1
      Prentice Hall License Agreement and Limited WarrantyEULA-1
   License Agreement and Limited WarrantyEULA-3
      Using the CD-ROMEULA-3
      Contents of the CD-ROMEULA-3
      Software and Hardware System RequirementsEULA-3
   Index

Previous Page
Next Page