Sams Teach Yourself C++ in 21 Days

(singke) #1
programming. See also
program design
comments, 32-33, 38
/* (C-style), 33
// (C++-style), 33
cautions, 34
example, 33-34
writing, 39
development cycle, 16
development
environments, 14
executable files, 15
levels of abstraction, 129
object files, 15
object-oriented, 9,
137-138
data hiding, 10
encapsulation, 10
inheritance, 10-11
polymorphism, 11,
118-121
problem solving, 7-8
program branching,
132-133
program design, 13-14
program structure,
25-28
# (pound) symbol, 26
include statements, 26,
38
main( ) function, 27
resources, 785
structured, 8-9
style guidelines
access labels, 783
assert( ) macro, 784
capitalization, 782
class definitions, 783
comments, 782-783
const statement, 784
identifier names,
781-782
include files, 784
readability of code,
780-781
spelling, 782

programs.See also
program design;
programming
branching, 132-133
comments, 32-33, 38
/* (C-style), 33
// (C++-style), 33
cautions, 34
example, 33-34
writing, 39
compilers, 6, 19, 752
assert( ) macro,
761-762
compiling with
symbols, 747
errors, 20-21
intermediate files,
saving, 752
troubleshooting, 20
debugging, 746-747
assemblers, 747
assert( ) macro,
762-764
breakpoints, 747
examining memory,
747
inclusion guards,
755-756
printing interim
values, 769-771
watch points, 747
defined, 7
designing, 13-14
Hello World
compiling, 17-18
creating, 19-20
running, 18
source code, 17, 25-26
testing, 19-20
interpreters, 6
linkers, 6
structure of, 25-28
# (pound) symbol, 26
include statements, 26,
38
main( ) function, 27

protected data members,
376-377
protected keyword, 376
prototypes, 101-104
defined, 101
parameters, 267-268
return types, 103
public accessor methods,
147-148
public classes, 144-146
public keyword, 152
pulling data from stack, 133
pure virtual functions,
477-482
push_back( ) function, 695
push_front( ) function, 702
pushing data onto stack,
132-133
put( ) method, 613-614
putback( ) function, 635
putback( ) method, 611-612

Q-R

question mark (?), 59
quotation marks (“), 759

\r escape code, 58
r-values, 71
RAM (random access
memory), 42, 130-132
Rational Unified Process,
332
readability of code, 780-781
reading data in exceptions,
735
reassigning
pointers, 237
references, 259
Rect.cpp, 168-169
Rectangle class
declaring, 168-170,
210-216, 296
DrawShape( ) method,
290-291

Rectangle class 905

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

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

Free download pdf