|
|
 |
|
|
|
|
compiling, 6 |
|
|
|
 |
|
|
|
|
conditional, 352 |
|
|
|
 |
|
|
|
|
errors, 15-17 |
|
|
|
 |
|
|
|
|
complete classes, 105, 108 |
|
|
|
 |
|
|
|
|
complex hierarchies, 294, 297-298 |
|
|
|
 |
|
|
|
|
complex classes, 105, 108 |
|
|
|
 |
|
|
|
|
complex if statements, 53-55 |
|
|
|
 |
|
|
|
|
compound statements, 42 |
|
|
|
 |
|
|
|
|
concatenation operator, 355-357 |
|
|
|
 |
|
|
|
|
conceptualization phase, 377, 383 |
|
|
|
 |
|
|
|
|
conditional compiling, 352 |
|
|
|
 |
|
|
|
|
console applications, 11 |
|
|
|
 |
|
|
|
|
console windows, 11 |
|
|
|
 |
|
|
|
|
const keyword, 99, 348, 439 |
|
|
|
 |
|
|
|
|
class member functions, 99 |
|
|
|
 |
|
|
|
|
declaring |
|
|
|
 |
|
|
|
|
defining constants, 38-39 |
|
|
|
 |
|
|
|
|
functions, 100, 109 |
|
|
|
 |
|
|
|
|
keyword, 156, 260 |
|
|
|
 |
|
|
|
|
objects, 157-159 |
|
|
|
 |
|
|
|
|
member functions, 159 |
|
|
|
 |
|
|
|
|
pointers, 156 |
|
|
|
 |
|
|
|
|
passing, 180-183 |
|
|
|
 |
|
|
|
|
this pointer, 159 |
|
|
|
 |
|
|
|
|
constant functions, 99 |
|
|
|
 |
|
|
|
|
constant member functions, 99 |
|
|
|
 |
|
|
|
|
constant pointers, 157, 236-238, 330, 340, 436 |
|
|
|
 |
|
|
|
|
constants, 37 |
|
|
|
 |
|
|
|
|
creating, 37 |
|
|
|
 |
|
|
|
|
defining, 38-39 |
|
|
|
 |
|
|
|
|
enumerated, 39 |
|
|
|
 |
|
|
|
|
initializing, 37, 199 |
|
|
|
 |
|
|
|
|
literal, 37, 40 |
|
|
|
 |
|
|
|
|
objects, 157 |
|
|
|
 |
|
|
|
|
pointers, 157 |
|
|
|
 |
|
|
|
|
substituting for (#define command), 348 |
|
|
|
 |
|
|
|
|
symbolic, 38, 40 |
|
|
|
 |
|
|
|
|
constructors, 94, 97 |
|
|
|
 |
|
|
|
|
calling, 254-256 |
|
|
|
 |
|
|
|
|
copy, 178, 223 |
|
|
|
 |
|
|
|
|
calling, 178-180, 200 |
|
|
|
 |
|
|
|
|
default, 200 |
|
|
|
 |
|
|
|
|
defining, 201-204 |
|
|
|
 |
|
|
|
|
parameters, 200 |
|
|
|
 |
|
|
|
|
creating objects, 199 |
|
|
|
 |
|
|
|
|
declaring, 95 |
|
|
|
 |
|
|
|
|
default, 94-95, 149, 198 |
|
|
|
 |
|
|
|
|
derived classes, overloading, 259-260 |
|
|
|
 |
|
|
|
|
initializing, 199, 205 |
|
|
|
 |
|
|
|
|
initializing member variables, 199 |
|
|
|
 |
|
|
|
|
overloading, 199 |
|
|
|
 |
|
|
|
|
virtual, 276, 278-279 |
|
|
|
 |
|
|
|
|
virtual member functions, 382 |
|
|
|
 |
|
|
|
|
contained classes, 328 |
|
|
|
 |
|
|
|
|
contained members, 328 |
|
|
|
 |
|
|
|
|
containment, 322, 328 |
|
|
|
 |
|
|
|
|
continue statement, 115-117 |
|
|
|
 |
|
|
|
|
conversion operators, 219-222 |
|
|
|
 |
|
|
|
|
converting |
|
|
|
 |
|
|
|
|
base 10 to base 6, 449 |
|
|
|
 |
|
|
|
|
base 10 to base 7, 449 |
|
|
|
 |
|
|
|
|
base 10 to binary, 450 |
|
|
|
 |
|
|
|
|
base numbers, 450 |
|
|
|
 |
|
|
|
|
decimals to binary, 452-453 |
|
|
|
 |
|
|
|
|
copy constructors, 178, 223 |
|
|
|
 |
|
|
|
|
calling, 178-180, 200 |
|
|
|
 |
|
|
|
|
default, 200 |
|
|
|
 |
|
|
|
|
defining, 201-204 |
|
|
|
 |
|
|
|
|
parameters, 200 |
|
|
|
 |
|
|
|
|
copying |
|
|
|
 |
|
|
|
|
members (shallow copies), 216 |
|
|
|
 |
|
|
|
|
objects, 177, 200 |
|
|
|
 |
|
|
|
|
cout statements, 20-21, 26 |
|
|
|
 |
|
|
|
|
string constants, 239 |
|
|
|
 |
|
|
|
|
.CPP files (implementation files), 101, 351 |
|
|
|
 |
|
|
|
|
creating |
|
|
|
 |
|
|
|
|
aliases, 166 |
|
|
|
 |
|
|
|
|
arrays |
|
|
|
 |
|
|
|
|
multidimensional, 233 |
|
|
|
 |
|
|
|
|
objects, 230 |
|
|
|
 |
|
|
|
|
classes, 386 |
|
|
|
 |
|
|
|
|
hierarchies, 286, 289 |
|
|
|
 |
|
|
|
|
constants, 37 |
|
|
|
 |
|
|
|
|
conversion operators, 219-221 |
|
|
|
 |
|
|
|
|
executable files, 13 |
|
|
|
 |
|
|
|
|
linked lists, 303 |
|
|
|
 |
|
|
|
|
macro functions, 352-353 |
|
|
|
 |
|
|
|
|
memory, 145 |
|
|
|
 |
|
|
|
|
functions, 190 |
|
|
|
 |
|
|
|
|
memory leaks, 147 |
|
|
|
 |
|
|
|
|
nodes (head/tail), 309 |
|
|
|
 |
|
|
|
|
objects |
|
|
|
 |
|
|
|
|
constructors, 199 |
|
|
|
 |
|
|
|
|
free store, 151 |
|
|
|
 |
|
|
|
|
pointers (member functions), 340 |
|
|
|
 |
|
|
|
|
references, 162-163 |
|
|
|
 |
|
|
|
|
this pointer, 156 |
|
|
|
 |
|
|
|
|
types, 404 |
|
|
|
 |
|
|
|
|
variables (multiple at same time), 31-33, 94 |
|
|
|
 |
|
|
|
|
cubby holes (cubbies), 28 |
|
|
|
 |
|
|
|
|
dash (-), 151 |
|
|
|
 |
|
|
|
|
data |
|
|
|
 |
|
|
|
|
aquiring, 387 |
|
|
|
 |
|
|
|
|
global, 345 |
|
|
|
 |
|
|
|
|
hiding, 8 |
|
|
|
 |
|
|
|
|
manipulating |
|
|
|
 |
|
|
|
|
classes, 242 |
|
|
|
 |
|
|
|
|
pointers, 139-141 |
|
|
|
 |
|
|
|
|
root classes, 388 |
|
|
|
 |
|
|
|
|
static, 345 |
|
|
|
 |
|
|
|
|
storing (arrays), 225 |
|
|
|
 |
|
|
|
|
data members, 87 |
|
|
|
 |
|
|
|
|
accessing, 89, 151-152 |
|
|
|
 |
|
|
|
|
classes (pointers), 152-154 |
|
|
|
 |
|
|
|
|
private, 90 |
|
|
|
 |
|
|
|
|
public, 89-90 |
|
|
|
 |
|
|
|
|
data objects, 314 |
|
|
|
 |
|
|
|
|
data types, 85 |
|
|
|
 |
|
|
|
|
abstract, 286, 289-290, 298-299 |
|
|
|
 |
|
|
|
|
declaring, 290 |
|
|
|
 |
|
|
|
|
providing common functionality, 298 |
|
|
|
 |
|
|
|
|
pure virtual functions, 289-290 |
|
|
|
 |
|
|
|
|
_DATE_ macro (predefined), 357 |
|
|
|
 |
|
|
|
|
DEBUG (assert() macro), 357-358 |
|
|
|
 |
|
|
|
|
debugging, 13 |
|
|
|
 |
|
|
|
|
assert() statements, 359 |
|
|
|
 |
|
|
|
|
code, 69, 352 |
|
|
|
 |
|
|
|
|
levels, 366, 369 |
|
|
|
 |
|
|
|
|
macros, 355 |
|
|
|
 |
|
|
|
|
with predefined macros, 357 |
|
|
|
 |
|
|
|
|
decimal numbers, 447-448 |
|
|
|
 |
|
|
|
|
converting to |
|
|
|
 |
|
|
|
|
base 6, 449 |
|
|
|
|
|