|
|
 |
|
|
|
|
Ordering. See Sorting |
|
|
|
 |
|
|
|
|
Orders of magnitude, 286 |
|
|
|
 |
|
|
|
|
OrdList class |
|
|
|
 |
|
|
|
|
constructor for, 1060, 1062, 1079-1081 |
|
|
|
 |
|
|
|
|
destructor for, 1060 |
|
|
|
 |
|
|
|
|
implementation file for, 1061-1078 |
|
|
|
 |
|
|
|
|
specification file for, 1058-1060 |
|
|
|
 |
|
|
|
|
ordlist.cpp file, 1061-1078 |
|
|
|
 |
|
|
|
|
ordlist.h file, 1058-1060 |
|
|
|
 |
|
|
|
|
OS/360 operating system, 175 |
|
|
|
 |
|
|
|
|
ostream class, 133, 162, 848-849 |
|
|
|
 |
|
|
|
|
Out-of-bounds array indices, 599-601 |
|
|
|
 |
|
|
|
|
Preventing, 758 |
|
|
|
 |
|
|
|
|
problems from, 635-636 |
|
|
|
 |
|
|
|
|
safe array class for, 1018-1019 |
|
|
|
 |
|
|
|
|
Outgoing values in interfaces, 353-354, 356-359 |
|
|
|
 |
|
|
|
|
Output, 43, 68-70 |
|
|
|
 |
|
|
|
|
classes for, 162, 848-849 |
|
|
|
 |
|
|
|
|
debugging, 173-176 |
|
|
|
 |
|
|
|
|
for debugging, 312 |
|
|
|
 |
|
|
|
|
devices for, 16, 68 |
|
|
|
 |
|
|
|
|
with enumeration types, 541-542 |
|
|
|
 |
|
|
|
|
files for. See Files |
|
|
|
 |
|
|
|
|
formatting, 105-113 |
|
|
|
 |
|
|
|
|
manipulators for, 109-113 |
|
|
|
 |
|
|
|
|
spacing in, 106-108 |
|
|
|
 |
|
|
|
|
of strings, 672 |
|
|
|
 |
|
|
|
|
Output files, opening, 148 |
|
|
|
 |
|
|
|
|
Output streams, 68 |
|
|
|
 |
|
|
|
|
Overflow |
|
|
|
 |
|
|
|
|
floating point, 531-532 |
|
|
|
 |
|
|
|
|
integer, 54, 531 |
|
|
|
 |
|
|
|
|
Overriding inherited functions, 913 |
|
|
|
 |
|
|
|
|
Painting traffic cones case study, 119-122 |
|
|
|
 |
|
|
|
|
Parallel arrays, 612, 727-728 |
|
|
|
 |
|
|
|
|
Parameterless functions, 326 |
|
|
|
 |
|
|
|
|
Parameters, 102-103, 141, 331-334 |
|
|
|
 |
|
|
|
|
analogy demonstrating, 348-349 |
|
|
|
 |
|
|
|
|
arrays as, 603-604, 608-611, 720-722 |
|
|
|
 |
|
|
|
|
in constructors, 863, 865, 867, 924 |
|
|
|
 |
|
|
|
|
in copy-constructors, 999-1000 |
|
|
|
 |
|
|
|
|
data flow documentation for, 356-358 |
|
|
|
 |
|
|
|
|
declaring, 332 |
|
|
|
 |
|
|
|
|
matching, 349-352, 720-721 |
|
|
|
 |
|
|
|
|
names for, 333, 337-338, 347 |
|
|
|
 |
|
|
|
|
objects as, 846, 926 |
|
|
|
 |
|
|
|
|
passing mechanisms for, 351-352 |
|
|
|
 |
|
|
|
|
records (structs) as,777 |
|
|
|
 |
|
|
|
|
reference, 342-345 |
|
|
|
 |
|
|
|
|
reference variables as, 988-990 |
|
|
|
 |
|
|
|
|
scope of, 393, 395 |
|
|
|
 |
|
|
|
|
side effects from, 343, 401-402,415 |
|
|
|
 |
|
|
|
|
syntax templates for, 335, 337, 350, A18, A21 |
|
|
|
 |
|
|
|
|
type coercion in, 344, 350, 549-551 |
|
|
|
 |
|
|
|
|
value, 342-344, 347 |
|
|
|
 |
|
|
|
|
Parentheses ( ) |
|
|
|
 |
|
|
|
|
for functions, 49, 73, 509 |
|
|
|
 |
|
|
|
|
for if statements, 202 |
|
|
|
 |
|
|
|
|
for parameters, 335 |
|
|
|
 |
|
|
|
|
for pointer dereferencing, 973 |
|
|
|
 |
|
|
|
|
for precedence, 94-95, 197-198, 516, A1 |
|
|
|
 |
|
|
|
|
for sizeof, 515 |
|
|
|
 |
|
|
|
|
for type casting, 96-97, 509-510, 514 |
|
|
|
 |
|
|
|
|
for while statements, 254 |
|
|
|
 |
|
|
|
|
Parents of classes, 909-910 |
|
|
|
 |
|
|
|
|
Pascal, Blaise, 100-101 |
|
|
|
 |
|
|
|
|
Pascal, Etienne, 100 |
|
|
|
 |
|
|
|
|
Pascal's law, 101 |
|
|
|
 |
|
|
|
|
Pascal's theorem, 100 |
|
|
|
 |
|
|
|
|
Pascal's triangle, 101 |
|
|
|
 |
|
|
|
|
PassengerMoment function (Starship), 442-443 |
|
|
|
 |
|
|
|
|
Passing |
|
|
|
 |
|
|
|
|
messages, 909 |
|
|
|
 |
|
|
|
|
parameters, 141, 351-352. |
|
|
|
 |
|
|
|
|
See also Parameters. |
|
|
|
 |
|
|
|
|
Passive error detection, 577 |
|
|
|
 |
|
|
|
|
Passwords for logging onto mainframes, 77 |
|
|
|
 |
|
|
|
|
Payroll case study, 26-30 |
|
|
|
 |
|
|
|
|
Payroll program, 29-30 |
|
|
|
 |
|
|
|
|
PCs (personal computers), 18 |
|
|
|
 |
|
|
|
|
Percent sign (%) |
|
|
|
 |
|
|
|
|
for number conversion, 1144-1146 |
|
|
|
 |
|
|
|
|
precedence of, 94-95, 197, 516, A1 |
|
|
|
 |
|
|
|
|
for remainder operator, 65-66 |
|
|
|
 |
|
|
|
|
Period (.) |
|
|
|
 |
|
|
|
|
for class member selection, 847, 849 |
|
|
|
 |
|
|
|
|
in dot notation, 140 |
|
|
|
 |
|
|
|
|
in floating point numbers, 56 |
|
|
|
 |
|
|
|
|
in input data, 135 |
|
|
|
 |
|
|
|
|
in output formatting, 111-112 |
|
|
|
 |
|
|
|
|
for structure (struct member selection, 774-775, 821-822 |
|
|
|
 |
|
|
|
|
in syntax templates, 48 |
|
|
|
 |
|
|
|
|
Peripheral devices, 16-17 |
|
|
|
 |
|
|
|
|
Personal computers (PCs), 18 |
|
|
|
 |
|
|
|
|
Personnel records case study, 1001-1018 |
|
|
|
 |
|
|
|
|
Phases |
|
|
|
 |
|
|
|
|
in loops, 256-257 |
|
|
|
 |
|
|
|
|
in programming, 3-8, 152 |
|
|
|
 |
|
|
|
|
Phone numbers, representing, 796 |
|
|
|
 |
|
|
|
|
Physical execution order, 254 |
|
|
|
 |
|
|
|
|
Player class |
|
|
|
 |
|
|
|
|
implementation file for, 1102-1107 |
|
|
|
 |
|
|
|
|
specification file for, 1101-1102 |
|
|
|
 |
|
|
|
|
Player.cpp file, 1104-1107 |
|
|
|
 |
|
|
|
|
Player.h file, 1101-1102 |
|
|
|
 |
|
|
|
|
PlayGame function (Playerclass), 1102-1105 |
|
|
|
 |
|
|
|
|
Playing cards, simulated, 1083-1090 |
|
|
|
 |
|
|
|
|
Plotters, 17 |
|
|
|
 |
|
|
|
|
Plus sign (+) |
|
|
|
 |
|
|
|
|
for addition, 65-66 |
|
|
|
|
|