SRL Archive - C/C++ Help and Tutorials

Accelerated C++ - Only read if you have the book..


Craig`

2008-12-28 06:09:43

Hey, this has been getting on my nerves, on page 21 theres:

[PHP]
int r = 0;

while(r != rows) {
std::cout << std::endl;
++r;
}
[/PHP]

Is this just an example to introduce you to the while loop? Or what?

Buckleyindahouse

2008-12-28 07:34:14

apparently it's a while loop by the while keyword.

boberman

2008-12-28 09:13:57

Yes, that is an example to introduce you to a while loop.