|
|
 |
|
|
|
|
Number sign (#), 76, 862 |
|
|
|
 |
|
|
|
|
Number systems, 8-9 |
|
|
|
 |
|
|
|
|
Numbers. See also Floating point data types; Integral data types |
|
|
|
 |
|
|
|
|
converting, 1143-1146 |
|
|
|
 |
|
|
|
|
operators for, 65-68 |
|
|
|
 |
|
|
|
|
testing characters for, 413 |
|
|
|
 |
|
|
|
|
Nybbles, 9 |
|
|
|
 |
|
|
|
|
Object code (.obj) files, 11-12,859-861 |
|
|
|
 |
|
|
|
|
Object-oriented design (OOD), 161-164, 907, 930-931 |
|
|
|
 |
|
|
|
|
driver design in, 933 |
|
|
|
 |
|
|
|
|
identification stage in, 931-932, 936-937 |
|
|
|
 |
|
|
|
|
implementing, 934-935 |
|
|
|
 |
|
|
|
|
iterative nature of, 933-934 |
|
|
|
 |
|
|
|
|
relationships in, 932-933, 938 |
|
|
|
 |
|
|
|
|
in time card lookup case study, 936-938 |
|
|
|
 |
|
|
|
|
Object-oriented programming (OOP), 907-908 |
|
|
|
 |
|
|
|
|
composition in, 921-925 |
|
|
|
 |
|
|
|
|
dynamic binding in, 925-930 |
|
|
|
 |
|
|
|
|
inheritance in, 909-920 |
|
|
|
 |
|
|
|
|
objects in, 908-909 |
|
|
|
 |
|
|
|
|
testing and debugging, 956-958 |
|
|
|
 |
|
|
|
|
Object-Pascal language, 162 |
|
|
|
 |
|
|
|
|
Object programs, 11-12, 859-861 |
|
|
|
 |
|
|
|
|
Object tables, 937 |
|
|
|
 |
|
|
|
|
Objects, 57, 843-844 |
|
|
|
 |
|
|
|
|
arrays of, 846, 868 |
|
|
|
 |
|
|
|
|
declaring, 846 |
|
|
|
 |
|
|
|
|
and dynamic data, 990-1001 |
|
|
|
 |
|
|
|
|
dynamic binding of operations to, 925-930 |
|
|
|
 |
|
|
|
|
inaccessible, 984-986 |
|
|
|
 |
|
|
|
|
initializing, 863-868, 998-1001 |
|
|
|
 |
|
|
|
|
instantiating, 846 |
|
|
|
 |
|
|
|
|
lifetime of, 846-847 |
|
|
|
 |
|
|
|
|
in object-oriented design, 162-163, 931-932, 936-937 |
|
|
|
 |
|
|
|
|
in object-oriented programming, 908-909 |
|
|
|
 |
|
|
|
|
as parameters, 846, 926 |
|
|
|
 |
|
|
|
|
Observer functions, 841, 851, 858 |
|
|
|
 |
|
|
|
|
Octal numbers |
|
|
|
 |
|
|
|
|
constants, A27 |
|
|
|
 |
|
|
|
|
escape sequence with, 521 |
|
|
|
 |
|
|
|
|
representation of integers, 505-507 |
|
|
|
 |
|
|
|
|
syntax template for, A27 |
|
|
|
 |
|
|
|
|
zeros for, 54-55 |
|
|
|
 |
|
|
|
|
Odd numbers, counting, 267 |
|
|
|
 |
|
|
|
|
Off-by-1 syndrome, 312 |
|
|
|
 |
|
|
|
|
Off-the-shelf software, 838 |
|
|
|
 |
|
|
|
|
ofstream class, 146-147, 162, 849 |
|
|
|
 |
|
|
|
|
One-dimensional arrays, 594-595 |
|
|
|
 |
|
|
|
|
accessing components in, 596-599, 604-607 |
|
|
|
 |
|
|
|
|
aggregate operations on, 602-604 |
|
|
|
 |
|
|
|
|
for character frequency case studies, 619-635 |
|
|
|
 |
|
|
|
|
copying, 603, 609-610 |
|
|
|
 |
|
|
|
|
declaring, 595-596, 601-602, 604-607 |
|
|
|
 |
|
|
|
|
initializing, 601-602 |
|
|
|
 |
|
|
|
|
for list processing, 613-619 |
|
|
|
 |
|
|
|
|
out-of-bounds array indices with, 599-601, 635-636 |
|
|
|
 |
|
|
|
|
parallel, 612 |
|
|
|
 |
|
|
|
|
as parameters, 603-604, 608-611 |
|
|
|
 |
|
|
|
|
printing, 1132-1134 |
|
|
|
 |
|
|
|
|
strings as, 669-671 |
|
|
|
 |
|
|
|
|
subarray processing, 611-612 |
|
|
|
 |
|
|
|
|
testing and debugging, 635-637 |
|
|
|
 |
|
|
|
|
open function, 147-148, 675 |
|
|
|
 |
|
|
|
|
OpenForInput functions |
|
|
|
 |
|
|
|
|
in Absentee, 749 |
|
|
|
 |
|
|
|
|
in BirthdayCalls, 887 |
|
|
|
 |
|
|
|
|
in Election, 734 |
|
|
|
 |
|
|
|
|
in Exam, 689-690 |
|
|
|
 |
|
|
|
|
in MergeLists, 815 |
|
|
|
 |
|
|
|
|
in PunchIn 954 |
|
|
|
 |
|
|
|
|
in SortWithPointers, 1016 |
|
|
|
 |
|
|
|
|
OpenForOutput functions |
|
|
|
 |
|
|
|
|
in Absentee, 749-750 |
|
|
|
 |
|
|
|
|
in Election, 734-735 |
|
|
|
 |
|
|
|
|
in Friends, 804 |
|
|
|
 |
|
|
|
|
in MergeLists, 816 |
|
|
|
 |
|
|
|
|
Opening files, 147-149, 152, 214 |
|
|
|
 |
|
|
|
|
Operating systems, 19 |
|
|
|
 |
|
|
|
|
design problems in, 175 |
|
|
|
 |
|
|
|
|
main called by, 44-45, 215 |
|
|
|
 |
|
|
|
|
UNIX, 21 |
|
|
|
 |
|
|
|
|
Operations |
|
|
|
 |
|
|
|
|
for abstract data types, 841 |
|
|
|
 |
|
|
|
|
on classes, 846-849 |
|
|
|
 |
|
|
|
|
in object-oriented design, 931-932, 936-937 |
|
|
|
 |
|
|
|
|
with pointers, 978-979 |
|
|
|
 |
|
|
|
|
on structures (structs), 777 |
|
|
|
 |
|
|
|
|
with reference types, 988 |
|
|
|
 |
|
|
|
|
Operators, 509-510 |
|
|
|
 |
|
|
|
|
address-of, 970, 989 |
|
|
|
 |
|
|
|
|
arithmetic, 65-68 |
|
|
|
 |
|
|
|
|
in array indices, 597 |
|
|
|
 |
|
|
|
|
arrow, 973, 978 |
|
|
|
 |
|
|
|
|
assignment, 510-512 |
|
|
|
 |
|
|
|
|
associativity of, 95, 516-517, A1-A2 |
|
|
|
 |
|
|
|
|
bitwise, 196, 510, 513 |
|
|
|
 |
|
|
|
|
conditional, 515-516 |
|
|
|
 |
|
|
|
|
in expressions, 64-68 |
|
|
|
 |
|
|
|
|
extraction, 133-136, 672-675 |
|
|
|
 |
|
|
|
|
implication, 307, 476 |
|
|
|
 |
|
|
|
|
increment and decrement, 512-513 |
|
|
|
 |
|
|
|
|
insertion, 68-70, 672 |
|
|
|
 |
|
|
|
|
logical, 193-196 |
|
|
|
 |
|
|
|
|
precedence of, 94-95, 197-198, 516-517, A1-A2 |
|
|
|
 |
|
|
|
|
relational, 190-193 |
|
|
|
 |
|
|
|
|
scope resolution, 858 |
|
|
|
 |
|
|
|
|
sizeof, 514-515 |
|
|
|
 |
|
|
|
|
syntax template for, A17 |
|
|
|
 |
|
|
|
|
OR operator (| |) |
|
|
|
 |
|
|
|
|
in assertion comments, 355 |
|
|
|
 |
|
|
|
|
in logical expressions, 193-196, 199 |
|
|
|
 |
|
|
|
|
Order of instructions. See Control structures |
|
|
|
 |
|
|
|
|
Ordered lists, 1046 |
|
|
|
 |
|
|
|
|
inserting into, 659-662 |
|
|
|
 |
|
|
|
|
searching in, 657-658, 662-666 |
|
|
|
|
|