It is currently Sun Aug 20, 2017 6:07 pm

All times are UTC - 5 hours




 Page 1 of 1 [ 1 post ] 
Author Message
 Post subject:
PostPosted: Tue Aug 14, 2007 6:52 am 
Site Admin

Joined: Sun Feb 11, 2007 8:59 am
Posts: 1105
Location: Ontario Canada
I show you how to use the while and the for loop in this VMK so that you can perform repeated tasks in your programs. Near the end I also describe how random numbers work in C++.



I didn't say this in the VMK, but you can also place break-out conditions inside of the for loop so that you don't execute the designated number of times specified in the for statement. However if you are doing this, maybe you should be using a while loop instead.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  

cron