|
|
 |
|
|
|
|
assigning (built-in to userdefined), 218 |
|
|
|
 |
|
|
|
|
Boolean, 436 |
|
|
|
 |
|
|
|
|
char, 29 |
|
|
|
 |
|
|
|
|
character, 30 |
|
|
|
 |
|
|
|
|
creating, 31-33 |
|
|
|
 |
|
|
|
|
declaring, 436 |
|
|
|
 |
|
|
|
|
defining, 31-32, 94 |
|
|
|
 |
|
|
|
|
doubles, 35 |
|
|
|
 |
|
|
|
|
floating-point, 30 |
|
|
|
 |
|
|
|
|
floats, 35, 40 |
|
|
|
 |
|
|
|
|
global, 68, 81 |
|
|
|
 |
|
|
|
|
free store, 143 |
|
|
|
 |
|
|
|
|
name space, 143 |
|
|
|
 |
|
|
|
|
scope, 68 |
|
|
|
 |
|
|
|
|
initializing, 33-34 |
|
|
|
 |
|
|
|
|
int, 29, 185 |
|
|
|
 |
|
|
|
|
local, 66, 70-71, 81 |
|
|
|
 |
|
|
|
|
free store, 143 |
|
|
|
 |
|
|
|
|
stacks, 80, 143 |
|
|
|
 |
|
|
|
|
long, 40 |
|
|
|
 |
|
|
|
|
long int, 29 |
|
|
|
 |
|
|
|
|
member |
|
|
|
 |
|
|
|
|
initializing, 199 |
|
|
|
 |
|
|
|
|
member-wise copies, 200 |
|
|
|
 |
|
|
|
|
static, 318 |
|
|
|
 |
|
|
|
|
names, 28, 436 |
|
|
|
 |
|
|
|
|
naming, 31-32 |
|
|
|
 |
|
|
|
|
case-sensitivity, 32 |
|
|
|
 |
|
|
|
|
keywords, 32 |
|
|
|
 |
|
|
|
|
naming conventions, 88 |
|
|
|
 |
|
|
|
|
pointers (memory addresses), 134 |
|
|
|
 |
|
|
|
|
scope, 68 |
|
|
|
 |
|
|
|
|
short, 40 |
|
|
|
 |
|
|
|
|
short int, 29 |
|
|
|
 |
|
|
|
|
signed, wrapping around, 36-37 |
|
|
|
 |
|
|
|
|
signed short, 35 |
|
|
|
 |
|
|
|
|
size, 29, 30-32 |
|
|
|
 |
|
|
|
|
types, 28-31, 85-86 |
|
|
|
 |
|
|
|
|
creating, 86 |
|
|
|
 |
|
|
|
|
declaring, 135 |
|
|
|
 |
|
|
|
|
long, 35 |
|
|
|
 |
|
|
|
|
short, 35 |
|
|
|
 |
|
|
|
|
signed, 30 |
|
|
|
 |
|
|
|
|
unsigned, 30 |
|
|
|
 |
|
|
|
|
unsigned, wrapping around, 36 |
|
|
|
 |
|
|
|
|
unsigned long, 35 |
|
|
|
 |
|
|
|
|
unsigned short, 35 |
|
|
|
 |
|
|
|
|
values, 28, 33, 89 |
|
|
|
 |
|
|
|
|
virtual |
|
|
|
 |
|
|
|
|
constructors, 276-279 |
|
|
|
 |
|
|
|
|
destructors, 276 |
|
|
|
 |
|
|
|
|
functions, 280 |
|
|
|
 |
|
|
|
|
methods, 279 |
|
|
|
 |
|
|
|
|
virtual function table, 272, 279 |
|
|
|
 |
|
|
|
|
virtual functions, 272, 299 |
|
|
|
 |
|
|
|
|
invoking, 273-275 |
|
|
|
 |
|
|
|
|
non-pure, 294, 297-298 |
|
|
|
 |
|
|
|
|
pure, 289-290, 294, 297-299 |
|
|
|
 |
|
|
|
|
declaring, 290 |
|
|
|
 |
|
|
|
|
implementing, 291, 294 |
|
|
|
 |
|
|
|
|
overriding, 298 |
|
|
|
 |
|
|
|
|
virtual member functions, calling, 271, 382 |
|
|
|
 |
|
|
|
|
virtual methods, 267-269, 279, 289 |
|
|
|
 |
|
|
|
|
virtual table pointer, 272 |
|
|
|
 |
|
|
|
|
virtual tables, 299 |
|
|
|
 |
|
|
|
|
void, returning (functions), 24, 71, 78 |
|
|
|
 |
|
|
|
|
void return types, 65 |
|
|
|
 |
|
|
|
|
watch statements, 371 |
|
|
|
 |
|
|
|
|
waterfall method (development cycle), 375 |
|
|
|
 |
|
|
|
|
when to use |
|
|
|
 |
|
|
|
|
default values, 198 |
|
|
|
 |
|
|
|
|
overloading functions, 198 |
|
|
|
 |
|
|
|
|
pointers, 185 |
|
|
|
 |
|
|
|
|
references, 185 |
|
|
|
 |
|
|
|
|
while loops |
|
|
|
 |
|
|
|
|
break statement, 115-117 |
|
|
|
 |
|
|
|
|
complex expressions, 114-115 |
|
|
|
 |
|
|
|
|
continue statement, 115-117 |
|
|
|
 |
|
|
|
|
simple example, 113 |
|
|
|
 |
|
|
|
|
while(true) loops, 117-118, 380 |
|
|
|
 |
|
|
|
|
whitespace, 42, 60, 435 |
|
|
|
 |
|
|
|
|
wild pointers, 137 |
|
|
|
 |
|
|
|
|
windowing environments, 11 |
|
|
|
 |
|
|
|
|
windows |
|
|
|
 |
|
|
|
|
console, 11 |
|
|
|
 |
|
|
|
|
quick, 11 |
|
|
|
 |
|
|
|
|
simple, 11 |
|
|
|
 |
|
|
|
|
wired objects, 387-388 |
|
|
|
 |
|
|
|
|
word processors, 16 |
|
|
|
 |
|
|
|
|
wrapping around |
|
|
|
 |
|
|
|
|
signed variables, 36-37 |
|
|
|
 |
|
|
|
|
unsigned variables, 36 |
|
|
|
 |
|
|
|
|
writing |
|
|
|
 |
|
|
|
|
arrays (past end), 227-228 |
|
|
|
 |
|
|
|
|
code, 434 |
|
|
|
 |
|
|
|
|
aligning braces, 434 |
|
|
|
 |
|
|
|
|
assert() statements, 439 |
|
|
|
 |
|
|
|
|
class definitions, 438 |
|
|
|
 |
|
|
|
|
comments, 437 |
|
|
|
 |
|
|
|
|
const, 439 |
|
|
|
 |
|
|
|
|
function definition, 438 |
|
|
|
 |
|
|
|
|
header files, 438 |
|
|
|
 |
|
|
|
|
identifiers, 436 |
|
|
|
 |
|
|
|
|
indenting switch statements, 435 |
|
|
|
 |
|
|
|
|
line length, 435 |
|
|
|
 |
|
|
|
|
program access, 438 |
|
|
|
 |
|
|
|
|
program text, 435-436 |
|
|
|
 |
|
|
|
|
spelling/capitalization, 436-437 |
|
|
|
 |
|
|
|
|
style, 434 |
|
|
|
 |
|
|
|
|
comments, 23 |
|
|
|
 |
|
|
|
|
macros (assert()), 357-358 |
|
|
|
 |
|
|
|
|
past end of arrays, 238 |
|
|
|
 |
|
|
|
|
programs, 11 |
|
|
|
|
|