|
|
 |
|
|
|
|
RevPrint function, 1136-1137 |
|
|
|
 |
|
|
|
|
Right justified fields, 109-110 |
|
|
|
 |
|
|
|
|
Right shift operator, 513 |
|
|
|
 |
|
|
|
|
Right triangles case study, 165-168 |
|
|
|
 |
|
|
|
|
Ritchie, Dennis, 21 |
|
|
|
 |
|
|
|
|
Robust programs, 292 |
|
|
|
 |
|
|
|
|
Rock, paper, scissors case study, 559-569 |
|
|
|
 |
|
|
|
|
Round-off errors, 757 |
|
|
|
 |
|
|
|
|
Rounding |
|
|
|
 |
|
|
|
|
floating point numbers, 115, 528 |
|
|
|
 |
|
|
|
|
with type casting, 97 |
|
|
|
 |
|
|
|
|
Rows in two-dimensional arrays, 708-712 |
|
|
|
 |
|
|
|
|
looping for, 719 |
|
|
|
 |
|
|
|
|
summing, 714-716 |
|
|
|
 |
|
|
|
|
Run-time stack and recursion, 1124 |
|
|
|
 |
|
|
|
|
Running programs, 78-80 |
|
|
|
 |
|
|
|
|
Safe array class, 1018 |
|
|
|
 |
|
|
|
|
Sales case study, 362-369, 426-433 |
|
|
|
 |
|
|
|
|
Scales in programming, 174-175, 906 |
|
|
|
 |
|
|
|
|
ScanList function (CharCount), 625-626, 649 |
|
|
|
 |
|
|
|
|
Scanners, 17 |
|
|
|
 |
|
|
|
|
Scientific notation, 56, 111 |
|
|
|
 |
|
|
|
|
Scope |
|
|
|
 |
|
|
|
|
in blocks, 393-396 |
|
|
|
 |
|
|
|
|
in classes, 391, 823, 849-850 |
|
|
|
 |
|
|
|
|
with enumeration types, 538 |
|
|
|
 |
|
|
|
|
in for statements, 471 |
|
|
|
 |
|
|
|
|
of identifiers, 390-395 |
|
|
|
 |
|
|
|
|
of user-defined types, 535 |
|
|
|
 |
|
|
|
|
Scope resolution operator (::), 858 |
|
|
|
 |
|
|
|
|
ScopeRules program, 394-396 |
|
|
|
 |
|
|
|
|
Score averages case study, 169-173 |
|
|
|
 |
|
|
|
|
Search function, 650-651, 667 |
|
|
|
 |
|
|
|
|
Search function |
|
|
|
 |
|
|
|
|
(BirthdayReminder), 682-683 |
|
|
|
 |
|
|
|
|
Search2 function, 652-653, 667 |
|
|
|
 |
|
|
|
|
Searches |
|
|
|
 |
|
|
|
|
complexity in, 667-668 |
|
|
|
 |
|
|
|
|
in ordered lists, 657-658, 662-666 |
|
|
|
 |
|
|
|
|
sequential, 621 |
|
|
|
 |
|
|
|
|
testing and debugging, 698-699 |
|
|
|
 |
|
|
|
|
with TimeCardList class, 946-950 |
|
|
|
 |
|
|
|
|
in unordered lists, 649-653 |
|
|
|
 |
|
|
|
|
SearchOrd function, 658, 661 |
|
|
|
 |
|
|
|
|
complexity in, 667 |
|
|
|
 |
|
|
|
|
in Exam, 692-693 |
|
|
|
 |
|
|
|
|
in Friends, 806-807 |
|
|
|
 |
|
|
|
|
Secondary storage devices, 16-18 |
|
|
|
 |
|
|
|
|
Seed value for random numbers, 1096, A9 |
|
|
|
 |
|
|
|
|
Selection control structures, 13-14, 187-188 |
|
|
|
 |
|
|
|
|
Selection sorts, 653-657 |
|
|
|
 |
|
|
|
|
Self-documenting code, 164-165 |
|
|
|
 |
|
|
|
|
SelSort function, 655-656 |
|
|
|
 |
|
|
|
|
complexity in, 668 |
|
|
|
 |
|
|
|
|
in RecordList class, 1007-1009, 1013-1014 |
|
|
|
 |
|
|
|
|
in TimeCardList class, 946-950 |
|
|
|
 |
|
|
|
|
Semantic content in array indices, 613 |
|
|
|
 |
|
|
|
|
Semantics |
|
|
|
 |
|
|
|
|
errors in, 240 |
|
|
|
 |
|
|
|
|
and syntax, 45-46 |
|
|
|
 |
|
|
|
|
Semicolon (;) |
|
|
|
 |
|
|
|
|
for blocks, 75 |
|
|
|
 |
|
|
|
|
in declarations, 58 |
|
|
|
 |
|
|
|
|
for do-while statements, 464 |
|
|
|
 |
|
|
|
|
in expression statements, 511 |
|
|
|
 |
|
|
|
|
in for statements, 469 |
|
|
|
 |
|
|
|
|
in function definitions, 338 |
|
|
|
 |
|
|
|
|
for if statements, 203-205 |
|
|
|
 |
|
|
|
|
for structures (structs), 773-774 |
|
|
|
 |
|
|
|
|
Semihierarchical implementation, 160 |
|
|
|
 |
|
|
|
|
Sentinel-controlled loops, 259-263, 275 |
|
|
|
 |
|
|
|
|
Sentinel values |
|
|
|
 |
|
|
|
|
in sequential searches, 652, 657 |
|
|
|
 |
|
|
|
|
for strings, 670 |
|
|
|
 |
|
|
|
|
Separate compilation of source code files, 859-861 |
|
|
|
 |
|
|
|
|
Separation of data and programs, 132 |
|
|
|
 |
|
|
|
|
Sequences, 13-14 |
|
|
|
 |
|
|
|
|
Sequential flow of control, 186-187 |
|
|
|
 |
|
|
|
|
Sequential programming statements, 13-14 |
|
|
|
 |
|
|
|
|
Sequential searches, 621 |
|
|
|
 |
|
|
|
|
efficiency of, 666 |
|
|
|
 |
|
|
|
|
in ordered lists, 657-658 |
|
|
|
 |
|
|
|
|
testing and debugging, 698-699 |
|
|
|
 |
|
|
|
|
in unordered lists, 649-653 |
|
|
|
 |
|
|
|
|
Sequential structures versus linked, 1046-1047 |
|
|
|
 |
|
|
|
|
Set functions |
|
|
|
 |
|
|
|
|
in DateType class, 872, 878 |
|
|
|
 |
|
|
|
|
in ExtTime class, 916, 918, 920 |
|
|
|
 |
|
|
|
|
in Time class, 939 |
|
|
|
 |
|
|
|
|
in TimeType class, 853-855, 866 |
|
|
|
 |
|
|
|
|
SetAsterisks function |
|
|
|
 |
|
|
|
|
(Absentee), 754-755 |
|
|
|
 |
|
|
|
|
setf function, 111-112 |
|
|
|
 |
|
|
|
|
SetID function (TimeCard class), 941, 943 |
|
|
|
 |
|
|
|
|
setprecision manipulator, 109, 112-113 |
|
|
|
 |
|
|
|
|
Sets, 198-199 |
|
|
|
 |
|
|
|
|
setW manipulator, 109-113 |
|
|
|
 |
|
|
|
|
Sex discrimination case study, 286-292 |
|
|
|
 |
|
|
|
|
Shallow copying in classes, 996-997 |
|
|
|
 |
|
|
|
|
Shared modules, 160-161 |
|
|
|
 |
|
|
|
|
Shickard, Wilhelm, 100-101 |
|
|
|
 |
|
|
|
|
Shift expression, syntax template for, A23 |
|
|
|
 |
|
|
|
|
Shift operators, 513 |
|
|
|
 |
|
|
|
|
Shipping invoices case study, 298-305 |
|
|
|
 |
|
|
|
|
Short-circuit evaluation, 196, 1068 |
|
|
|
 |
|
|
|
|
short data type |
|
|
|
 |
|
|
|
|
range of values for, 504 |
|
|
|
 |
|
|
|
|
representation of, 53-54 |
|
|
|
 |
|
|
|
|
size of, 503 |
|
|
|
|
|