|
|
 |
|
|
|
|
converting, to binary, 1143-1146 |
|
|
|
 |
|
|
|
|
representing, 9 |
|
|
|
 |
|
|
|
|
syntax template for, A26 |
|
|
|
 |
|
|
|
|
Decimal places in output statements, 111-112 |
|
|
|
 |
|
|
|
|
Decimal point. |
|
|
|
 |
|
|
|
|
See also Period (.) |
|
|
|
 |
|
|
|
|
in floating point numbers, 56 |
|
|
|
 |
|
|
|
|
in input data, 135 |
|
|
|
 |
|
|
|
|
in output formatting, 111-112 |
|
|
|
 |
|
|
|
|
Deciphering messages case study, 619-628 |
|
|
|
 |
|
|
|
|
Decisions in programming. |
|
|
|
 |
|
|
|
|
See Control structures |
|
|
|
 |
|
|
|
|
Declarations, 56-57 |
|
|
|
 |
|
|
|
|
in blocks, 75 |
|
|
|
 |
|
|
|
|
of classes, 843-846 |
|
|
|
 |
|
|
|
|
comments for, A33 |
|
|
|
 |
|
|
|
|
of constants, 59-62 |
|
|
|
 |
|
|
|
|
of constructors, 863-865 |
|
|
|
 |
|
|
|
|
in for statements, 469 |
|
|
|
 |
|
|
|
|
forward, 336, 1051-1052 |
|
|
|
 |
|
|
|
|
of functions, 328, 335-338 |
|
|
|
 |
|
|
|
|
header files for, 341-342 |
|
|
|
 |
|
|
|
|
initializations in, 399-400 |
|
|
|
 |
|
|
|
|
of multidimensional arrays, 727 |
|
|
|
 |
|
|
|
|
new data types in, 544-545 |
|
|
|
 |
|
|
|
|
of objects, 846 |
|
|
|
 |
|
|
|
|
of one-dimensional arrays, 595-596, 601-602, 604-607 |
|
|
|
 |
|
|
|
|
of parameters, 332 |
|
|
|
 |
|
|
|
|
of pointers, 969-970, 972 |
|
|
|
 |
|
|
|
|
of records (structs), 773-774 |
|
|
|
 |
|
|
|
|
of strings, 671-672 |
|
|
|
 |
|
|
|
|
syntax templates for, A14, A16 |
|
|
|
 |
|
|
|
|
of two-dimensional arrays, 710, 723 |
|
|
|
 |
|
|
|
|
of unions, 786-787 |
|
|
|
 |
|
|
|
|
of variables, 57-59, 395-397 |
|
|
|
 |
|
|
|
|
Decrement operator, 67-68, 510 |
|
|
|
 |
|
|
|
|
with pointers, 979 |
|
|
|
 |
|
|
|
|
precedence of, 516, A1 |
|
|
|
 |
|
|
|
|
side effects from, 512-513 |
|
|
|
 |
|
|
|
|
Deep copying in classes, 996-997 |
|
|
|
 |
|
|
|
|
Default constructors, 863-865, 925 |
|
|
|
 |
|
|
|
|
Default parameters, 344n |
|
|
|
 |
|
|
|
|
Default switch statement labels, 461-463 |
|
|
|
 |
|
|
|
|
#define directive, 372, 862 |
|
|
|
 |
|
|
|
|
Definitions |
|
|
|
 |
|
|
|
|
for data types, 189-190, 535 |
|
|
|
 |
|
|
|
|
for functions, 72, 74, 327-328, 335-338 |
|
|
|
 |
|
|
|
|
recursive, 1121 |
|
|
|
 |
|
|
|
|
for variables, 395-397 |
|
|
|
 |
|
|
|
|
Delete function (OrdList class), 1060, 1076-1078 |
|
|
|
 |
|
|
|
|
delete operator, 980-986 |
|
|
|
 |
|
|
|
|
DeleteTop function (OrdList class), 1059, 1074-1076, 1110 |
|
|
|
 |
|
|
|
|
Deleting |
|
|
|
 |
|
|
|
|
files, 416-417 |
|
|
|
 |
|
|
|
|
linked list items, 1050, 1074-1078, 1082, 1109-1110 |
|
|
|
 |
|
|
|
|
DeMorgan, Augustus, 198, 406 |
|
|
|
 |
|
|
|
|
DeMorgan's Law, 194n, 224 |
|
|
|
 |
|
|
|
|
Demotion of data types, 549-551 |
|
|
|
 |
|
|
|
|
Dereference operator, 970-971, 973 |
|
|
|
 |
|
|
|
|
Dereferencing |
|
|
|
 |
|
|
|
|
pointers, 970-971, 973, 978 |
|
|
|
 |
|
|
|
|
reference variables, 987 |
|
|
|
 |
|
|
|
|
Derived classes, 910 |
|
|
|
 |
|
|
|
|
constructors for, 917, 919 |
|
|
|
 |
|
|
|
|
deriving, 911-914 |
|
|
|
 |
|
|
|
|
Descartes, René, 100 |
|
|
|
 |
|
|
|
|
Descendants of classes, 910 |
|
|
|
 |
|
|
|
|
Descending sorts, 656-657 |
|
|
|
 |
|
|
|
|
Designs |
|
|
|
 |
|
|
|
|
of functions, 352-356 |
|
|
|
 |
|
|
|
|
implementing, 157-161 |
|
|
|
 |
|
|
|
|
of interfaces, 400-404, 415-417 |
|
|
|
 |
|
|
|
|
of loops, 273-277, 281-283 |
|
|
|
 |
|
|
|
|
object-oriented. |
|
|
|
 |
|
|
|
|
See Object-oriented design (OOD) |
|
|
|
 |
|
|
|
|
top-down, 152-156, 162 |
|
|
|
 |
|
|
|
|
Destructors, 868, 994-995 |
|
|
|
 |
|
|
|
|
Diagrams, syntax, 46-47 |
|
|
|
 |
|
|
|
|
Difference Engine, 330, 406 |
|
|
|
 |
|
|
|
|
Differential calculus, 101 |
|
|
|
 |
|
|
|
|
Digits |
|
|
|
 |
|
|
|
|
BNF definition of, 46-47 significant, 527-528, 530 |
|
|
|
 |
|
|
|
|
syntax templates for, 48, 506, A27 |
|
|
|
 |
|
|
|
|
testing characters for, 413, A3 |
|
|
|
 |
|
|
|
|
Direct addressing, 970 |
|
|
|
 |
|
|
|
|
Directives, preprocessor, 76-77, 546-547, 862 |
|
|
|
 |
|
|
|
|
Disk drives |
|
|
|
 |
|
|
|
|
for secondary storage, 17-18 |
|
|
|
 |
|
|
|
|
for virtual memory, 1023 |
|
|
|
 |
|
|
|
|
Disk files. |
|
|
|
 |
|
|
|
|
See Files |
|
|
|
 |
|
|
|
|
Divide and conquer techniques,24, 27, 153, 162 |
|
|
|
 |
|
|
|
|
Division, 65-66 |
|
|
|
 |
|
|
|
|
in assignment operators, 510 |
|
|
|
 |
|
|
|
|
with mixed data types, 98-99 |
|
|
|
 |
|
|
|
|
precedence of, 94-95 |
|
|
|
 |
|
|
|
|
by zero, 66 |
|
|
|
 |
|
|
|
|
Dnames, syntax template for, A17 |
|
|
|
 |
|
|
|
|
do-while statements, 464-468 |
|
|
|
 |
|
|
|
|
Documentation, 8 |
|
|
|
 |
|
|
|
|
comments for, A32-A35 |
|
|
|
 |
|
|
|
|
data flow, 356-358 |
|
|
|
 |
|
|
|
|
in function headings, 358-359 |
|
|
|
 |
|
|
|
|
interfaces as, 356 |
|
|
|
 |
|
|
|
|
self-documenting code, 164-165 |
|
|
|
 |
|
|
|
|
Domains |
|
|
|
 |
|
|
|
|
of data types, 502 |
|
|
|
 |
|
|
|
|
in object-oriented design, 930-931 |
|
|
|
 |
|
|
|
|
Dot notation, 140 |
|
|
|
 |
|
|
|
|
for class members, 847, 849-850 |
|
|
|
 |
|
|
|
|
for structure (struct) members, 774-775, 821-822, 973 |
|
|
|
 |
|
|
|
|
DoTowers function (TestTowers), 1129-1132 |
|
|
|
 |
|
|
|
|
Dot (.). |
|
|
|
 |
|
|
|
|
See Period (.) |
|
|
|
 |
|
|
|
|
double data type, 55-56 |
|
|
|
 |
|
|
|
|
as atomic data type, 503 |
|
|
|
 |
|
|
|
|
constants, 508 |
|
|
|
 |
|
|
|
|
demoting, 550 |
|
|
|
 |
|
|
|
|
promoting, 548 |
|
|
|
|
|