|
|
 |
|
|
|
|
declaring, 921-922 |
|
|
|
 |
|
|
|
|
implementation file for, 922-925, 942-944 |
|
|
|
 |
|
|
|
|
specification file for, 941-942 |
|
|
|
 |
|
|
|
|
timecard.cpp file, 942-944 |
|
|
|
 |
|
|
|
|
TimeCardList class |
|
|
|
 |
|
|
|
|
constructor for, 946-949 |
|
|
|
 |
|
|
|
|
implementation file for, 947-951 |
|
|
|
 |
|
|
|
|
specification file for, 945-947 |
|
|
|
 |
|
|
|
|
TimePart function (TimeCard class), 942, 944 |
|
|
|
 |
|
|
|
|
TimeType class |
|
|
|
 |
|
|
|
|
compiling and linking, 860-861 |
|
|
|
 |
|
|
|
|
constructors for, 863-866 |
|
|
|
 |
|
|
|
|
declaring, 845-846 |
|
|
|
 |
|
|
|
|
implementation file for, 854-858, 867 |
|
|
|
 |
|
|
|
|
members of, 843 |
|
|
|
 |
|
|
|
|
specification file for, 852-854, 865-867 |
|
|
|
 |
|
|
|
|
testing and debugging, 890-894 |
|
|
|
 |
|
|
|
|
timetype.cpp file, 854-858, 867 |
|
|
|
 |
|
|
|
|
timetype.h file, 852-854, 865-867 |
|
|
|
 |
|
|
|
|
tolower function, 524-525, A5 |
|
|
|
 |
|
|
|
|
Tool making, 174 |
|
|
|
 |
|
|
|
|
Top-down program design, 152-156, 162 |
|
|
|
 |
|
|
|
|
encapsulation in, 353, 360-361 |
|
|
|
 |
|
|
|
|
scaling in, 906 |
|
|
|
 |
|
|
|
|
void functions in, 324-328 |
|
|
|
 |
|
|
|
|
toupper function, 524-525, A5 |
|
|
|
 |
|
|
|
|
Towers of Hanoi game, 1127-1132 |
|
|
|
 |
|
|
|
|
Tracing program execution, 234-237, 312 |
|
|
|
 |
|
|
|
|
Traffic cones painting case study, 119-122 |
|
|
|
 |
|
|
|
|
Traffic light state diagram, 270 |
|
|
|
 |
|
|
|
|
Trailer values, 259-260 |
|
|
|
 |
|
|
|
|
Transformers, 841 |
|
|
|
 |
|
|
|
|
Transition rules for finite state machines, 269-272 |
|
|
|
 |
|
|
|
|
Transpose program, 422-424 |
|
|
|
 |
|
|
|
|
Transposing names case study, 418-424 |
|
|
|
 |
|
|
|
|
Treatise on Differential Equations (Boole), 199 |
|
|
|
 |
|
|
|
|
Treatise on the Calculus of Finite Differences (Boole), 199 |
|
|
|
 |
|
|
|
|
Tree structures in program design, 154 |
|
|
|
 |
|
|
|
|
Triangle program, 167-168 |
|
|
|
 |
|
|
|
|
Trigonometric functions, A6-A7 |
|
|
|
 |
|
|
|
|
Triply nested loops, 282 |
|
|
|
 |
|
|
|
|
Trouble program, 402-404 |
|
|
|
 |
|
|
|
|
True values, 188-189 |
|
|
|
 |
|
|
|
|
Truncation |
|
|
|
 |
|
|
|
|
from demotion, 550 |
|
|
|
 |
|
|
|
|
of floating point numbers, 528 |
|
|
|
 |
|
|
|
|
with type coercion, 96 |
|
|
|
 |
|
|
|
|
TryRemove function (Player class), 1103, 1105-1106 |
|
|
|
 |
|
|
|
|
Two-dimensional arrays, 708-712 |
|
|
|
 |
|
|
|
|
in absenteeism case study, 741-757 |
|
|
|
 |
|
|
|
|
accessing components in, 709-710, 713 |
|
|
|
 |
|
|
|
|
as arrays of arrays, 723-724 |
|
|
|
 |
|
|
|
|
declaring, 710, 723 |
|
|
|
 |
|
|
|
|
in election case study, 728-740 |
|
|
|
 |
|
|
|
|
initializing, 717-718, 722 |
|
|
|
 |
|
|
|
|
as parameters, 720-722 |
|
|
|
 |
|
|
|
|
printing, 718-719 |
|
|
|
 |
|
|
|
|
processing, 712-720 |
|
|
|
 |
|
|
|
|
summing columns in, 716-717 |
|
|
|
 |
|
|
|
|
summing rows in, 714-716 |
|
|
|
 |
|
|
|
|
Type casting, 95-99, 509-510, 514 |
|
|
|
 |
|
|
|
|
with enumeration types, 540 |
|
|
|
 |
|
|
|
|
precedence of, 516 |
|
|
|
 |
|
|
|
|
Type coercion, 95-99 |
|
|
|
 |
|
|
|
|
in assignments and return values, 549-551 |
|
|
|
 |
|
|
|
|
with enumeration types, 539 |
|
|
|
 |
|
|
|
|
in expressions, 547-549 |
|
|
|
 |
|
|
|
|
with parameters, 344, 350, 549-551 |
|
|
|
 |
|
|
|
|
with switch statements, 462 |
|
|
|
 |
|
|
|
|
typedef statements, 189-190 |
|
|
|
 |
|
|
|
|
with arrays, 678-679 |
|
|
|
 |
|
|
|
|
limitations of, 535 |
|
|
|
 |
|
|
|
|
syntax template for, A15 |
|
|
|
 |
|
|
|
|
Types. |
|
|
|
 |
|
|
|
|
See Data types |
|
|
|
 |
|
|
|
|
U with constants, 505 |
|
|
|
 |
|
|
|
|
UCHAR_MAX constant, 505, A6 |
|
|
|
 |
|
|
|
|
UINT_MAX constant, 505, A6 |
|
|
|
 |
|
|
|
|
ULONG_MAX constant, 505, A6 |
|
|
|
 |
|
|
|
|
Unary expressions, A24 |
|
|
|
 |
|
|
|
|
Unary operators, 65, A24 |
|
|
|
 |
|
|
|
|
UNDECLARED IDENTIFIER message, 69, 338 |
|
|
|
 |
|
|
|
|
Undefined pointers, 982 |
|
|
|
 |
|
|
|
|
Underflow of floating point |
|
|
|
 |
|
|
|
|
numbers, 531-532 |
|
|
|
 |
|
|
|
|
Underscore (_), 49-51, 62, A13 |
|
|
|
 |
|
|
|
|
Unions, 786-787 |
|
|
|
 |
|
|
|
|
Universal sets, 198 |
|
|
|
 |
|
|
|
|
UNIX operating system, 21 |
|
|
|
 |
|
|
|
|
Unordered lists |
|
|
|
 |
|
|
|
|
searching in, 649-653 |
|
|
|
 |
|
|
|
|
sorting, 653-657 |
|
|
|
 |
|
|
|
|
unsigned data types |
|
|
|
 |
|
|
|
|
constants, 505 |
|
|
|
 |
|
|
|
|
promoting, 548 |
|
|
|
 |
|
|
|
|
range of, 504 |
|
|
|
 |
|
|
|
|
representation of, 54 |
|
|
|
 |
|
|
|
|
using, 533 |
|
|
|
 |
|
|
|
|
Uppercase letters |
|
|
|
 |
|
|
|
|
for named constants, 61-62 |
|
|
|
 |
|
|
|
|
converting characters to, 524-525, A5 |
|
|
|
 |
|
|
|
|
for enumerators, 537 |
|
|
|
 |
|
|
|
|
in identifiers, 51, 61-63 |
|
|
|
 |
|
|
|
|
in string comparisons, 678 |
|
|
|
 |
|
|
|
|
testing characters for, 413, A4 |
|
|
|
 |
|
|
|
|
User-defined simple types |
|
|
|
 |
|
|
|
|
enumeration, 536-544 |
|
|
|
 |
|
|
|
|
typedef for, 534-535 |
|
|
|
 |
|
|
|
|
User names for logging onto mainframes, 77 |
|
|
|
 |
|
|
|
|
User-written header files, 545-547 |
|
|
|
 |
|
|
|
|
USHRT_MAX constant, 505, A6 |
|
|
|
 |
|
|
|
|
\v escape sequence, 521 |
|
|
|
 |
|
|
|
|
Validation, data, 234, 426-427, 433 |
|
|
|
|
|