Sams Teach Yourself C++ in 21 Days

(singke) #1
shared functions, 452
virtual inheritance,
468-472
virtual methods, 391-397
copy constructors,
400-403
destructors, 399-400
invoking multiple,
393-395
memory costs, 403
slicing, 397-399
v-pointers, 396
v-tables, 396
initialization statement, 189
initializing
arrays, 413-414, 419
constructors, 297
for loops, 188-190
objects, 297
Cat, 156-157
constructor methods,
154
pointers, 224, 232
references, 257
static data members, 692
variables, 51
inline functions, 122-124,
163-166, 326, 771-772
inline statement, 122, 134,
163-164
input. SeeI/O (input/
output)
Insert( ) function, 501, 700
insertion operator (<<), 28,
585-589
instantiating templates, 661
int data type, 46
integers
arrays, 409
division operations, 73
integer overflow, 72
long, 43, 53-54, 64
short, 43, 53-54
signed, 45, 55-56
sizes, 43-45
unsigned, 45, 54-55

interaction diagrams,
346-347
collaboration diagrams,
364
sequence diagrams,
363-364
state transition diagrams
end states, 364
start states, 364
super states, 365-366
interim values, printing,
769-771
intermediate files
(compiler), 752
internal flag, 618
internal linkage, 641
internal nodes (linked lists),
885
International Standards
Organization (ISO)
Standard, 12
interpreters, 6
IntFillFunction( ) function,
682
Intrude( ) function, 670
invariants, 764-769
Invariants( ) method,
764-769
invoking methods, 35-36,
129, 133
base methods, 389-390
pointers to methods, 528
recursion, 124-125, 128
static, 511-513
ios class, 597
iostream class, 597
iostream library, 593
is-a relationships.
Seeinheritance
ISO (International
Standards Organization)
Standard, 12
istream class, 597
Iterate( ) function, 501
iteration. Seeloops

J-K

Jacobson, Ivar, 332
jumps, 176

KB (kilobytes), 812
keywords, 49-50, 171, 817.
See alsostatements
class, 141, 149-151, 662
const, 158, 172-173
delete, 235-237
else, 84-85
enum, 61
friend, 585
goto, 176-177
inline, 122, 134, 163-164
namespace, 31-32
new, 234
protected, 376
public, 152
return, 114-115
static, 642-643, 653
struct, 171
template, 662
typedef, 52-53, 525-528
using, 30-31
using declaration,
650-652
using directive,
648-650
kilobytes (KB), 812

L

%l conversion specifier, 621
%ld conversion specifier,
621
l-values, 71
labels, 176
last in, first out (LIFO), 703
leaks (memory), 235-237,
283-285
left flag, 618
less than operator (<), 80
less than or equal to
operator (<=), 80

898 inheritance

34 0672327112 index.qxd 11/19/04 12:31 PM Page 898

Free download pdf