Sams Teach Yourself C++ in 21 Days

(singke) #1
short integers, 43, 46
showbase flag, 618
ShowMap( ) function, 707
showpoint flag, 618
showpos flag, 618
ShowVector( ) function, 699
signed integers, 45, 55-56
Simonyi, Charles, 49
single character input, 604
single quote (‘), 58
singly linked lists, 875
sizeof( ) operator, 45
sizes
arrays, 415, 429-432
class objects, 172
functions, 112
variables, 43-46
slash (/), 33
slicing virtual methods,
397-399
software. Seeprograms
solving problems, 7-8
solving the nth Fibonacci
number (listing), 196
source code. Seecode
source files, 14
spaces, 96
specialized constructors,
688
specialized functions,
683-688
stack (memory), 130-132,
233
clearing, 233
pulling data from, 132-133
pushing data onto,
130-133
standard I/O objects,
597-598
cerr, 598
cin, 598-600
extraction operator,
603-604
get( ) method, 604-608
getline( ) method,
608-610

ignore( ) method,
610-611
multiple input, 601-603
peek( ) method,
611-612
putback( ) method,
611-612
strings, 600-601
clog, 598
cout, 598, 613-620
fill characters, 616-617
flags, 617-620
flush( ) method, 613
output width, 615-616
put( ) method, 613-614
write( ) method,
614-615
standard namespace,
654-655
namespace keyword,
31-32
std:: notation, 30
using keyword, 30-31
state flags, 615-617
state member data, 533
state transition diagrams
end states, 364
start states, 364
super states, 365-366
statements, 68. See also
keywords
blocks, 68-69
catch, 719
try, 719-722
break, 180-183
catch, 719, 722, 729-732
class, 141, 149-151, 662
compound, 68-69
const, 60, 158, 172-173,
784
continue, 180-182
default, 200
#define, 60
constant substitutions,
753
string substitutions,
752
tests, 753-754

delete, 235-237, 429
do...while, 187
#else, 754-755
expressions, 69-70, 78
friend, 585
function prototypes, 104
goto, 176-177
if, 80-82
branching, 81-82
else keyword, 84-85
indentation styles,
83-84
nesting, 86-89
semicolon notation, 83
syntax, 85
include, 26, 38
initialization, 189
inline, 122, 134, 163-164
new, 234
null, 191-193
protected, 376
return, 36, 114-115
statements in functions,
112
struct, 171
switch
case values, 199
example, 199-200
forever loops, 201-204
guidelines, 204
syntax, 198-200
syntax, 68
template, 662
try, 719-722
typedef, 525-528
watch, 787
while
complex loops,
179-180
simple example,
177-178
syntax, 178
whitespace, 68
states (objects), 617
state transition diagrams,
364-366

states (objects) 907

How can we make this index more useful? Email us at [email protected]

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

Free download pdf