|
|
 |
|
|
|
|
Value parameters, 342-344, 347 |
|
|
|
 |
|
|
|
|
Value-returning functions, 44, 99-103, 404-415. |
|
|
|
 |
|
|
|
|
See also Functions |
|
|
|
 |
|
|
|
|
ValueAt function (DynArray class), 1020, 1024, 1028-1029 |
|
|
|
 |
|
|
|
|
Values |
|
|
|
 |
|
|
|
|
in assignment expressions, 511 |
|
|
|
 |
|
|
|
|
literal, 59-60, 536-537 |
|
|
|
 |
|
|
|
|
parameter passing by, 342-344, 347, 351 |
|
|
|
 |
|
|
|
|
range of, 504-505, 508 |
|
|
|
 |
|
|
|
|
return. See Function return values |
|
|
|
 |
|
|
|
|
true and false, 188-189 |
|
|
|
 |
|
|
|
|
variable, 57 |
|
|
|
 |
|
|
|
|
Variables |
|
|
|
 |
|
|
|
|
ADT, 841 |
|
|
|
 |
|
|
|
|
in array indices, 597 |
|
|
|
 |
|
|
|
|
class, 843-844 |
|
|
|
 |
|
|
|
|
comments for, 71 |
|
|
|
 |
|
|
|
|
counter, 258-259, 266 |
|
|
|
 |
|
|
|
|
declaring, 57-59, 395-397 |
|
|
|
 |
|
|
|
|
defining, 395-397 |
|
|
|
 |
|
|
|
|
dynamic, 980-986 |
|
|
|
 |
|
|
|
|
versus enumerators, 538 |
|
|
|
 |
|
|
|
|
in expressions, 64, 66 |
|
|
|
 |
|
|
|
|
external, 396-397 |
|
|
|
 |
|
|
|
|
in for statements, 469-471 |
|
|
|
 |
|
|
|
|
in functions, 338-339 |
|
|
|
 |
|
|
|
|
header files for, 342 |
|
|
|
 |
|
|
|
|
hiding, 391-392 |
|
|
|
 |
|
|
|
|
inaccessible, 984-986 |
|
|
|
 |
|
|
|
|
initializing, 399-400 |
|
|
|
 |
|
|
|
|
in input statements, 134 |
|
|
|
 |
|
|
|
|
lifetime of, 397-400 |
|
|
|
 |
|
|
|
|
in loops, 258-259, 268-269, 275, 307 |
|
|
|
 |
|
|
|
|
as members of objects, 843-844, 908-909 |
|
|
|
 |
|
|
|
|
memory for, 336, 338, 396 |
|
|
|
 |
|
|
|
|
names of. |
|
|
|
 |
|
|
|
|
See Identifiers as parameters, 102, 141, 333, 343, 349 |
|
|
|
 |
|
|
|
|
for pointers, 969-974 |
|
|
|
 |
|
|
|
|
pointers to. |
|
|
|
 |
|
|
|
|
See Pointers for records (structs), 773-775, 780 |
|
|
|
 |
|
|
|
|
for recursion, 1124-1127 |
|
|
|
 |
|
|
|
|
reference, 987-990 |
|
|
|
 |
|
|
|
|
scope of, 390-395 |
|
|
|
 |
|
|
|
|
side effects with, 401-404 |
|
|
|
 |
|
|
|
|
size of, 514-515 |
|
|
|
 |
|
|
|
|
state, 271 |
|
|
|
 |
|
|
|
|
string, 669-671 |
|
|
|
 |
|
|
|
|
swapping values of, 654-655 |
|
|
|
 |
|
|
|
|
union, 786-787 |
|
|
|
 |
|
|
|
|
Verification stage in problemsolving, 4 |
|
|
|
 |
|
|
|
|
Vertical bar (|) |
|
|
|
 |
|
|
|
|
in assertion comments, 355 |
|
|
|
 |
|
|
|
|
for bit manipulation, 196, 510, 513 |
|
|
|
 |
|
|
|
|
in logical operators, 193-196 |
|
|
|
 |
|
|
|
|
precedence of, 197, 516, A1-A2 |
|
|
|
 |
|
|
|
|
Vertical spacing in output, 106-107 |
|
|
|
 |
|
|
|
|
Vertical tab, escape sequence for, 521 |
|
|
|
 |
|
|
|
|
Video displays, 16, 68 |
|
|
|
 |
|
|
|
|
Virtual functions, 928-930 |
|
|
|
 |
|
|
|
|
virtual reserved word, 928-930 |
|
|
|
 |
|
|
|
|
Virtual memory, 1023 |
|
|
|
 |
|
|
|
|
Visibility. |
|
|
|
 |
|
|
|
|
See Scop |
|
|
|
 |
|
|
|
|
Void functions, 104-105. |
|
|
|
 |
|
|
|
|
See also Functions |
|
|
|
 |
|
|
|
|
calling, 334-335 |
|
|
|
 |
|
|
|
|
defining and declaring, 336-337 |
|
|
|
 |
|
|
|
|
modules as, 325-328 |
|
|
|
 |
|
|
|
|
names for, 341 |
|
|
|
 |
|
|
|
|
prototypes for, 336-337 |
|
|
|
 |
|
|
|
|
in top-down design, 324-328 |
|
|
|
 |
|
|
|
|
void reserved word, 327 |
|
|
|
 |
|
|
|
|
Vote counting case study, 728-740 |
|
|
|
 |
|
|
|
|
Walk program, 117-118 |
|
|
|
 |
|
|
|
|
Walk-throughs, 6, 230-234, 312 |
|
|
|
 |
|
|
|
|
Warning notices case study, 220-225 |
|
|
|
 |
|
|
|
|
Weight and balance of airplane case study, 433-445 |
|
|
|
 |
|
|
|
|
Weighted averages case study, 169-173 |
|
|
|
 |
|
|
|
|
Welcome program, 327-328, 330 |
|
|
|
 |
|
|
|
|
while statements, 254-256 |
|
|
|
 |
|
|
|
|
count-controlled, 257-259 |
|
|
|
 |
|
|
|
|
versus do-while statements, 465-468 |
|
|
|
 |
|
|
|
|
event-controlled, 259-265 |
|
|
|
 |
|
|
|
|
loop phases in, 256-257 |
|
|
|
 |
|
|
|
|
nested, 277-283 |
|
|
|
 |
|
|
|
|
Whitespace characters |
|
|
|
 |
|
|
|
|
with input, 135, 138-139, 165-166 |
|
|
|
 |
|
|
|
|
with strings, 672-675 |
|
|
|
 |
|
|
|
|
testing for, 413 |
|
|
|
 |
|
|
|
|
Widening of data types, 547-549 |
|
|
|
 |
|
|
|
|
Width of output fields, 109-113 |
|
|
|
 |
|
|
|
|
Will analysis case study, 479-485 |
|
|
|
 |
|
|
|
|
Word, 9 |
|
|
|
 |
|
|
|
|
Work, magnitude of, 283-286 |
|
|
|
 |
|
|
|
|
Workstations, 18 |
|
|
|
 |
|
|
|
|
Write functions |
|
|
|
 |
|
|
|
|
in ExtTime class, 916, 919-920 |
|
|
|
 |
|
|
|
|
in MergeLists, 819-820 |
|
|
|
 |
|
|
|
|
in Time class, 939 |
|
|
|
 |
|
|
|
|
in TimeType class, 853, 855-866 |
|
|
|
 |
|
|
|
|
WriteBarChart function (Absentee), 755 |
|
|
|
 |
|
|
|
|
WriteEntries function (Friends), 807-808 |
|
|
|
 |
|
|
|
|
WritePerCandidate function (Election), 737-738 |
|
|
|
 |
|
|
|
|
WritePerPrecinct function (Election), 739-740 |
|
|
|
 |
|
|
|
|
WriteTable functions |
|
|
|
 |
|
|
|
|
in Absentee, 751-752 |
|
|
|
 |
|
|
|
|
in Election, 736-737 |
|
|
|
 |
|
|
|
|
Writing analysis case study, 479-485 |
|
|
|
 |
|
|
|
|
\x escape sequence, 521 |
|
|
|
 |
|
|
|
|
X for hexadecimal numbers, 505, 507 |
|
|
|
 |
|
|
|
|
Year function (DateType class), 872, 879 |
|
|
|
 |
|
|
|
|
\0 escape sequence, 521, 668-670 |
|
|
|
|
|