|
|
 |
|
|
|
|
Storage class, 398, A14 |
|
|
|
 |
|
|
|
|
Store function (DynArray class), 1020-1021, 1024, 1029 |
|
|
|
 |
|
|
|
|
Store sales case study, 362-369, 426-433 |
|
|
|
 |
|
|
|
|
Straight selection sort, 653-657 |
|
|
|
 |
|
|
|
|
stract function, A9-A10 |
|
|
|
 |
|
|
|
|
strcmp function, 677-678, A10 |
|
|
|
 |
|
|
|
|
strcpy function, 677, 981-982, A10 |
|
|
|
 |
|
|
|
|
Streams, 68, 133 |
|
|
|
 |
|
|
|
|
for files, 146-147 |
|
|
|
 |
|
|
|
|
testing state of, 213-215 |
|
|
|
 |
|
|
|
|
string.h file, 676, A9-A10 |
|
|
|
 |
|
|
|
|
StrLength function, 669-670 |
|
|
|
 |
|
|
|
|
Strings, 59-60 |
|
|
|
 |
|
|
|
|
as arrays of characters, 669-671 |
|
|
|
 |
|
|
|
|
assignments with, 671-672 |
|
|
|
 |
|
|
|
|
blanks in, 107-108, 672-675 |
|
|
|
 |
|
|
|
|
comparing, 677-678, A10 |
|
|
|
 |
|
|
|
|
concatenating, A9-A10 |
|
|
|
 |
|
|
|
|
constants, 668-669, 671 |
|
|
|
 |
|
|
|
|
copying, 677, 981-982, A10 |
|
|
|
 |
|
|
|
|
declaring, 671-672 |
|
|
|
 |
|
|
|
|
initializing, 671-672 |
|
|
|
 |
|
|
|
|
input of, 672-675 |
|
|
|
 |
|
|
|
|
length of, 669-670, 676-677, A10 |
|
|
|
 |
|
|
|
|
names for, 679 |
|
|
|
 |
|
|
|
|
newline characters in, 137 |
|
|
|
 |
|
|
|
|
output of, 69, 672 |
|
|
|
 |
|
|
|
|
as parameters, 351-352 |
|
|
|
 |
|
|
|
|
printing, 672 |
|
|
|
 |
|
|
|
|
syntax template for, A29 |
|
|
|
 |
|
|
|
|
testing and debugging, 699-700 |
|
|
|
 |
|
|
|
|
type definitions for, 678-679 |
|
|
|
 |
|
|
|
|
variables, 669-671 |
|
|
|
 |
|
|
|
|
strlen function, 670, 676-677, A10 |
|
|
|
 |
|
|
|
|
Stroustrup, Bjarne, 21 |
|
|
|
 |
|
|
|
|
struct reserved word, 773. |
|
|
|
 |
|
|
|
|
See also Records |
|
|
|
 |
|
|
|
|
Structure of programs, 42-45 |
|
|
|
 |
|
|
|
|
Structured design, 152-156 |
|
|
|
 |
|
|
|
|
Structured programming, 906-908 |
|
|
|
 |
|
|
|
|
Structures, 772. |
|
|
|
 |
|
|
|
|
See also Records |
|
|
|
 |
|
|
|
|
versus classes, 846 |
|
|
|
 |
|
|
|
|
control. |
|
|
|
 |
|
|
|
|
See Control structures |
|
|
|
 |
|
|
|
|
versus simple data types, 502, 592-593 |
|
|
|
 |
|
|
|
|
Stubs, 445-448 |
|
|
|
 |
|
|
|
|
Style in programming, 6-7, A31-A32 |
|
|
|
 |
|
|
|
|
brace positioning, 206 |
|
|
|
 |
|
|
|
|
capitalization. |
|
|
|
 |
|
|
|
|
See Capitalization |
|
|
|
 |
|
|
|
|
class member declarations, 844-846 |
|
|
|
 |
|
|
|
|
comments, 70-71, A32-A35 |
|
|
|
 |
|
|
|
|
data flow documentation, 356-358 |
|
|
|
 |
|
|
|
|
data structure considerations, 789-793 |
|
|
|
 |
|
|
|
|
function headings, 358-359 |
|
|
|
 |
|
|
|
|
function interfaces, 356 |
|
|
|
 |
|
|
|
|
function names, 414-415 |
|
|
|
 |
|
|
|
|
indentation, A37-A39 |
|
|
|
 |
|
|
|
|
meaningful identifiers, 51, A35-A36 |
|
|
|
 |
|
|
|
|
program formatting, 113-115, A36-A37 |
|
|
|
 |
|
|
|
|
void function names, 341 |
|
|
|
 |
|
|
|
|
Subarray processing, 611-612 |
|
|
|
 |
|
|
|
|
Subclass, 910 |
|
|
|
 |
|
|
|
|
Subobject, 913 |
|
|
|
 |
|
|
|
|
Subprograms, 13-14. |
|
|
|
 |
|
|
|
|
See also Functions |
|
|
|
 |
|
|
|
|
Substitution cipher case study, 619-628 |
|
|
|
 |
|
|
|
|
Subtraction, 65-66 |
|
|
|
 |
|
|
|
|
in assignment operators, 510 |
|
|
|
 |
|
|
|
|
precedence of, 94-95 |
|
|
|
 |
|
|
|
|
Summarize function (Absentee), 753-754 |
|
|
|
 |
|
|
|
|
Summing |
|
|
|
 |
|
|
|
|
columns in two-dimensional arrays, 716-717 |
|
|
|
 |
|
|
|
|
loops for, 266-268 |
|
|
|
 |
|
|
|
|
rows in two-dimensional arrays, 714-716 |
|
|
|
 |
|
|
|
|
SumUp program, 309-310 |
|
|
|
 |
|
|
|
|
Superclass, 910 |
|
|
|
 |
|
|
|
|
Supercomputers, 18 |
|
|
|
 |
|
|
|
|
Swap function, 355-356, 988-989 |
|
|
|
 |
|
|
|
|
Swapping sorts, 653-657 |
|
|
|
 |
|
|
|
|
switch statement, 460-464 |
|
|
|
 |
|
|
|
|
Symbolic constants, 60-63 |
|
|
|
 |
|
|
|
|
Symbolic logic, 198-199 |
|
|
|
 |
|
|
|
|
Syntax, 45-46 |
|
|
|
 |
|
|
|
|
Syntax diagrams, 46-47 |
|
|
|
 |
|
|
|
|
Syntax errors, 46, 79, 240 |
|
|
|
 |
|
|
|
|
Syntax templates, 47-49, A10-A29 |
|
|
|
 |
|
|
|
|
for arrays, 596-597 |
|
|
|
 |
|
|
|
|
for assignment statements, 63 |
|
|
|
 |
|
|
|
|
for blocks, 73-74 |
|
|
|
 |
|
|
|
|
for case labels, 461 |
|
|
|
 |
|
|
|
|
for conditional expressions, 515 |
|
|
|
 |
|
|
|
|
for constant declarations, 60 |
|
|
|
 |
|
|
|
|
for constants, 506-509 |
|
|
|
 |
|
|
|
|
for digits, 48, 506 |
|
|
|
 |
|
|
|
|
for do-while statements, 464 |
|
|
|
 |
|
|
|
|
for dynamic allocation, 980 |
|
|
|
 |
|
|
|
|
for enumeration types, 537, 545 |
|
|
|
 |
|
|
|
|
for exponents, 509 |
|
|
|
 |
|
|
|
|
for for statements, 469 |
|
|
|
 |
|
|
|
|
for function calls, 101-102, 334 |
|
|
|
 |
|
|
|
|
for function definitions, 72, 74, 337-338, 410 |
|
|
|
 |
|
|
|
|
for identifiers, 50 |
|
|
|
 |
|
|
|
|
for If-Then statements, 207 |
|
|
|
 |
|
|
|
|
for If-Then-Else statements, 202 |
|
|
|
 |
|
|
|
|
for input statements, 134 |
|
|
|
 |
|
|
|
|
for main function, 48-49 |
|
|
|
 |
|
|
|
|
for member selectors, 774 |
|
|
|
 |
|
|
|
|
for nonzero digits, 506 |
|
|
|
 |
|
|
|
|
for output statements, 69, 109 |
|
|
|
 |
|
|
|
|
for parameters, 335, 337, 350 |
|
|
|
 |
|
|
|
|
for pointer variable declarations, 969 |
|
|
|
 |
|
|
|
|
for programs, 71-72 |
|
|
|
 |
|
|
|
|
for record (struct) members, 773 |
|
|
|
 |
|
|
|
|
for records (structs), 772, 779 |
|
|
|
 |
|
|
|
|
for statements, 74-75 |
|
|
|
 |
|
|
|
|
for switch statements, 461 |
|
|
|
|
|