Developer Resources’s Weblog

June 8, 2008

Accelerated C++ Chapter 2 – Looping and Counting

Filed under: Uncategorized — developerresources @ 9:43 am

The Page continues the discussion of Accelerated C++: Practical Programming by Example (C++ In-Depth Series)

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

2 Comments »

  1. The citizens are the members of the civil society, bound to this society by certain duties, and subject to its authority; they equally participate in its advantages. ,

    Comment by BadGirl33 — October 13, 2009 @ 7:29 am

  2. I realized that these skills stay with you. ,

    Comment by Loy20 — October 22, 2009 @ 7:38 am


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.