|
|
 |
|
|
|
|
representation of, 518-520 |
|
|
|
 |
|
|
|
|
testing contents of, 413-414, A3 |
|
|
|
 |
|
|
|
|
using, 533 |
|
|
|
 |
|
|
|
|
CHAR_MAX constant, 505, A5 |
|
|
|
 |
|
|
|
|
CHAR_MIN constant, 505, A5 |
|
|
|
 |
|
|
|
|
Character counting case study, 479-485 |
|
|
|
 |
|
|
|
|
Character sets, 55, A30-A31 |
|
|
|
 |
|
|
|
|
ASCII and EBCDIC, 518-520 and string comparisons, 678 |
|
|
|
 |
|
|
|
|
Characters. See alsochar data type |
|
|
|
 |
|
|
|
|
frequency of, 619-635 |
|
|
|
 |
|
|
|
|
nonprintable, 520 |
|
|
|
 |
|
|
|
|
null, 668-670 |
|
|
|
 |
|
|
|
|
syntax template for, A28 |
|
|
|
 |
|
|
|
|
CharCount program, 623-628 |
|
|
|
 |
|
|
|
|
CharToAnimal function, 543-544 |
|
|
|
 |
|
|
|
|
Charts |
|
|
|
 |
|
|
|
|
in absenteeism case study, 741-743, 746 |
|
|
|
 |
|
|
|
|
in sales case study, 362-363 |
|
|
|
 |
|
|
|
|
CheckA function (BirthdayReminder), 580-581 |
|
|
|
 |
|
|
|
|
CheckInStudents function (Exam), 693-694 |
|
|
|
 |
|
|
|
|
CheckJ function (BirthdayReminder), 579-580 |
|
|
|
 |
|
|
|
|
CheckLists program, 616-619 |
|
|
|
 |
|
|
|
|
CheckM function (BirthdayReminder), 581 |
|
|
|
 |
|
|
|
|
Chief architects, 153, 174 |
|
|
|
 |
|
|
|
|
Children of classes, 910 |
|
|
|
 |
|
|
|
|
cin stream |
|
|
|
 |
|
|
|
|
accessing, 404 |
|
|
|
 |
|
|
|
|
using, 133-136 |
|
|
|
 |
|
|
|
|
cin.get function, 138-141, 673-675 |
|
|
|
 |
|
|
|
|
cin. ignore function, 141-142, 674 |
|
|
|
 |
|
|
|
|
City council election case study, 728-740 |
|
|
|
 |
|
|
|
|
Class interface diagrams, 911-912 |
|
|
|
 |
|
|
|
|
Classes, 162-164, 842 |
|
|
|
 |
|
|
|
|
composition in, 921-925 |
|
|
|
 |
|
|
|
|
constructors for, 863-868, 917, 919 |
|
|
|
 |
|
|
|
|
copy-constructors for, 998-1001 |
|
|
|
 |
|
|
|
|
copying in, 996-997 |
|
|
|
 |
|
|
|
|
for dates, 869-882, 990-995 |
|
|
|
 |
|
|
|
|
declaring, 843-846 |
|
|
|
 |
|
|
|
|
deriving, 911-914 |
|
|
|
 |
|
|
|
|
destructors for, 868, 994-995 |
|
|
|
 |
|
|
|
|
dynamic binding in, 925-930 |
|
|
|
 |
|
|
|
|
dynamic data with, 990-1001 |
|
|
|
 |
|
|
|
|
implementation files for, 854-858 |
|
|
|
 |
|
|
|
|
information hiding in, 850-852 |
|
|
|
 |
|
|
|
|
inheritance in, 909-920 |
|
|
|
 |
|
|
|
|
for input and output, 848-849 |
|
|
|
 |
|
|
|
|
for linked lists, 1079-1081 |
|
|
|
 |
|
|
|
|
objects of. |
|
|
|
 |
|
|
|
|
See Objects |
|
|
|
 |
|
|
|
|
operations on, 846-849 |
|
|
|
 |
|
|
|
|
scope in, 391, 823, 849-850 |
|
|
|
 |
|
|
|
|
specification files for, 852-854 |
|
|
|
 |
|
|
|
|
syntax templates for, A15, A19 |
|
|
|
 |
|
|
|
|
testing and debugging, 889-894 |
|
|
|
 |
|
|
|
|
Clients of classes, 844 |
|
|
|
 |
|
|
|
|
CLOS language, 162 |
|
|
|
 |
|
|
|
|
COBOL language, 466-467, 1120 |
|
|
|
 |
|
|
|
|
Code. |
|
|
|
 |
|
|
|
|
See also Programming |
|
|
|
 |
|
|
|
|
for algorithms, 6 |
|
|
|
 |
|
|
|
|
for numbers, 8-9 |
|
|
|
 |
|
|
|
|
reusing, 906, 920 |
|
|
|
 |
|
|
|
|
self-documenting, 164-165 |
|
|
|
 |
|
|
|
|
testing, 239 |
|
|
|
 |
|
|
|
|
walk-throughs for, 234 |
|
|
|
 |
|
|
|
|
Cohesion, functional, 155-156, 425 |
|
|
|
 |
|
|
|
|
Cohesive modules, 156 |
|
|
|
 |
|
|
|
|
Collating sequences, 55, 191-192 |
|
|
|
 |
|
|
|
|
Collections |
|
|
|
 |
|
|
|
|
linear, 648 |
|
|
|
 |
|
|
|
|
lists, 937 |
|
|
|
 |
|
|
|
|
in structured data types, 592-593 |
|
|
|
 |
|
|
|
|
Colon (:) |
|
|
|
 |
|
|
|
|
in BNF, 46 |
|
|
|
 |
|
|
|
|
in class declarations, 844 |
|
|
|
 |
|
|
|
|
in conditional operator, 515-516 |
|
|
|
 |
|
|
|
|
in constructor initializers, 919 |
|
|
|
 |
|
|
|
|
in scope resolution operators, 858 |
|
|
|
 |
|
|
|
|
Columns in output statements, 110-113 |
|
|
|
 |
|
|
|
|
Columns in two-dimensional arrays, 708-712 |
|
|
|
 |
|
|
|
|
looping for, 720 |
|
|
|
 |
|
|
|
|
summing, 716-717 |
|
|
|
 |
|
|
|
|
Command line, compiling from, 860-861 |
|
|
|
 |
|
|
|
|
Comma (,) |
|
|
|
 |
|
|
|
|
in array initializations, 602 |
|
|
|
 |
|
|
|
|
in constructor initializers, 924 |
|
|
|
 |
|
|
|
|
in declarations, 58 |
|
|
|
 |
|
|
|
|
in enumeration types, 536 |
|
|
|
 |
|
|
|
|
in numbers, 54 |
|
|
|
 |
|
|
|
|
in parameter lists, 102, 335, 410 |
|
|
|
 |
|
|
|
|
in record (struct) initialization, 776 |
|
|
|
 |
|
|
|
|
Comments, 29, 70-71, A32-A35 |
|
|
|
 |
|
|
|
|
assertions as, 354-356 |
|
|
|
 |
|
|
|
|
for data flow, 356-358 |
|
|
|
 |
|
|
|
|
for debugging, 312-313, 808-809 |
|
|
|
 |
|
|
|
|
for declarations, 59, 61 |
|
|
|
 |
|
|
|
|
embedded, 357-358 |
|
|
|
 |
|
|
|
|
in function headings, 358-359 |
|
|
|
 |
|
|
|
|
loop invariants as, 475-479 |
|
|
|
 |
|
|
|
|
Communication complexity, 425 |
|
|
|
 |
|
|
|
|
Company payroll case study, 26-30 |
|
|
|
 |
|
|
|
|
ComparedTo function (DateType class), 873, 875-876, 880 |
|
|
|
 |
|
|
|
|
CompareLists function (CheckLists), 617-618 |
|
|
|
 |
|
|
|
|
Comparing |
|
|
|
 |
|
|
|
|
characters, 55, 522-523 |
|
|
|
 |
|
|
|
|
dates, 871, 875 |
|
|
|
 |
|
|
|
|
with enumeration types, 541 |
|
|
|
 |
|
|
|
|
floating point numbers, 201, 530 |
|
|
|
|
|