Loops and conditionals are an integral part of any programming language. Chapter 2 of Accelerated C++ introduces the reader to the while, if, logical operators, and constructs.
Being an experienced developer I thought the amount of detail used to explain the how to configure the while construct was a too much. However, I must assume that the author's had good reason to include so much detail as previous students of theirs must of been confused, and with loops being such an important concept I suppose the added explanation was worth it.
The author then goes on to describe the different built in types for C++:
Types:
bool
Built-in type representing truth values; may be either true or false
unsigned
Integral type that contains only non-negative values
short
Integral type that must hold at least 16 bits
long
Integral type that must hold at least 32 bits
size_t
Unsigned integral type (from ) that can hold any object's size
string::size_type
Unsigned integral type that can hold the size of any string
No comments:
Post a Comment