|
|
 |
|
|
|
|
fieldwidth specifications for, 110 |
|
|
|
 |
|
|
|
|
functions for, 325 |
|
|
|
 |
|
|
|
|
with if statements, 202-203, 207 |
|
|
|
 |
|
|
|
|
of increment and decrement operations, 513 |
|
|
|
 |
|
|
|
|
meaningful identifiers for, 51, A35-A36 |
|
|
|
 |
|
|
|
|
program formatting for, 113-115 |
|
|
|
 |
|
|
|
|
of two-dimensional array declarations, 723 |
|
|
|
 |
|
|
|
|
ReadAll functions |
|
|
|
 |
|
|
|
|
in RecordList class, 1006, 1012-1013 |
|
|
|
 |
|
|
|
|
in TimeCardList class, 946-947, 949 |
|
|
|
 |
|
|
|
|
ReadFirstList function (CheckLists), 617 |
|
|
|
 |
|
|
|
|
Reading data, 133, 138-141 |
|
|
|
 |
|
|
|
|
Reading marker |
|
|
|
 |
|
|
|
|
in opening files, 148 |
|
|
|
 |
|
|
|
|
operation of, 136-138 |
|
|
|
 |
|
|
|
|
Reads, priming, 260, 465-466 |
|
|
|
 |
|
|
|
|
Real numbers. |
|
|
|
 |
|
|
|
|
See Floating point data types |
|
|
|
 |
|
|
|
|
reclist.cpp file, 1010-1015 |
|
|
|
 |
|
|
|
|
reclist.h file, 1005-1007 |
|
|
|
 |
|
|
|
|
reclist.obj file, 1015 |
|
|
|
 |
|
|
|
|
RecordWin function (Game),566-567 |
|
|
|
 |
|
|
|
|
RecordList class, 1003-1005 |
|
|
|
 |
|
|
|
|
constructor for, 1007-1008, 1010 |
|
|
|
 |
|
|
|
|
destructor for, 1007, 1009-1010 |
|
|
|
 |
|
|
|
|
implementation file for, 1007-1015 |
|
|
|
 |
|
|
|
|
specification file for, 1005-1007 |
|
|
|
 |
|
|
|
|
Records (structs), 772, 778-780 |
|
|
|
 |
|
|
|
|
accessing members of, 774-775, 784 |
|
|
|
 |
|
|
|
|
in address book case study, 794-809 |
|
|
|
 |
|
|
|
|
arrays of, 781-782 |
|
|
|
 |
|
|
|
|
assignment of, 777 |
|
|
|
 |
|
|
|
|
versus classes, 846 |
|
|
|
 |
|
|
|
|
declaring, 773-774 |
|
|
|
 |
|
|
|
|
as function return values, 777 |
|
|
|
 |
|
|
|
|
hierarchical, 782-789 |
|
|
|
 |
|
|
|
|
initializing, 776 |
|
|
|
 |
|
|
|
|
inputting member values, 776 |
|
|
|
 |
|
|
|
|
operations on, 777 |
|
|
|
 |
|
|
|
|
as parameters, 777 |
|
|
|
 |
|
|
|
|
in personnel records case study, 1001-1018 |
|
|
|
 |
|
|
|
|
pointers for, 973 |
|
|
|
 |
|
|
|
|
sorting, 1003-1005, 1015-1018 |
|
|
|
 |
|
|
|
|
syntax templates for, 772, 779 |
|
|
|
 |
|
|
|
|
testing and debugging, 821-824 |
|
|
|
 |
|
|
|
|
variables for, 773-775, 780 |
|
|
|
 |
|
|
|
|
Recreate function (CardDeck class), 1094, 1097, 1101 |
|
|
|
 |
|
|
|
|
RectArea function (Area), 557-558 |
|
|
|
 |
|
|
|
|
Recursion, 1120 |
|
|
|
 |
|
|
|
|
factorial function, 1124-1127 |
|
|
|
 |
|
|
|
|
infinite, 1123-1124 |
|
|
|
 |
|
|
|
|
versus iteration, 1142-1143 |
|
|
|
 |
|
|
|
|
with linked lists, 1135-1142 |
|
|
|
 |
|
|
|
|
for minimum array value, 1147-1148 |
|
|
|
 |
|
|
|
|
for number conversion, 1143-1146 |
|
|
|
 |
|
|
|
|
with pointer variables, 1135-1137 |
|
|
|
 |
|
|
|
|
power function using, 1120-1124 |
|
|
|
 |
|
|
|
|
for printing arrays, 1132-1134 |
|
|
|
 |
|
|
|
|
testing and debugging, 1149 |
|
|
|
 |
|
|
|
|
Towers of Hanoi game, 1127-1132 |
|
|
|
 |
|
|
|
|
Recursive calls, 1120 |
|
|
|
 |
|
|
|
|
Recursive definition, 1121 |
|
|
|
 |
|
|
|
|
Reference |
|
|
|
 |
|
|
|
|
array passing by, 608-611, 720-722 |
|
|
|
 |
|
|
|
|
parameter passing by, 351 |
|
|
|
 |
|
|
|
|
Reference parameters, 342-345 |
|
|
|
 |
|
|
|
|
for dynamic binding, 927-930 |
|
|
|
 |
|
|
|
|
side effects from, 401-402, 415 |
|
|
|
 |
|
|
|
|
Reference types, 987-990 |
|
|
|
 |
|
|
|
|
Reformatting names case study, 418-424 |
|
|
|
 |
|
|
|
|
Relational expressions |
|
|
|
 |
|
|
|
|
syntax template for, A23 |
|
|
|
 |
|
|
|
|
type coercion in, 547-549 |
|
|
|
 |
|
|
|
|
Relational operators |
|
|
|
 |
|
|
|
|
with characters, 522 |
|
|
|
 |
|
|
|
|
with floating point numbers, 201 |
|
|
|
 |
|
|
|
|
with logical expressions, 190-193 |
|
|
|
 |
|
|
|
|
with pointers, 978 |
|
|
|
 |
|
|
|
|
Relationships in object-oriented design, 932-933, 938 |
|
|
|
 |
|
|
|
|
Relative parameter matching, 352 |
|
|
|
 |
|
|
|
|
Reliable programs, 309 |
|
|
|
 |
|
|
|
|
Remainder operator (%), 65-66 |
|
|
|
 |
|
|
|
|
for number conversion, 1144-1146 |
|
|
|
 |
|
|
|
|
precedence of, 94-95, A1 |
|
|
|
 |
|
|
|
|
Reminder case study, 569-576, 679-683 |
|
|
|
 |
|
|
|
|
remove function, 416-417 |
|
|
|
 |
|
|
|
|
RemoveTop function (CardPile class), 1085-1086, 1090 |
|
|
|
 |
|
|
|
|
Repeating actions, 13-14. |
|
|
|
 |
|
|
|
|
See also Loops |
|
|
|
 |
|
|
|
|
Representation |
|
|
|
 |
|
|
|
|
of abstract data, 840 |
|
|
|
 |
|
|
|
|
of characters, 518-520 |
|
|
|
 |
|
|
|
|
of enumeration types, 536-537 |
|
|
|
 |
|
|
|
|
of floating point numbers, 526-528 |
|
|
|
 |
|
|
|
|
Representational error, 529-530 |
|
|
|
 |
|
|
|
|
Reserved words, 50, 62, A1 |
|
|
|
 |
|
|
|
|
Restricted declarators, A25 |
|
|
|
 |
|
|
|
|
Restricted type names, A25 |
|
|
|
 |
|
|
|
|
Return key, newline characters from, 136 |
|
|
|
 |
|
|
|
|
return statement, 49, 339-341, 409 |
|
|
|
 |
|
|
|
|
Return values. |
|
|
|
 |
|
|
|
|
See Function return values |
|
|
|
 |
|
|
|
|
Returning from functions, 49, 141, 339-341, 409 |
|
|
|
 |
|
|
|
|
Reusing code, 906, 920 |
|
|
|
 |
|
|
|
|
ReverseList program, 594-595 |
|
|
|
|
|