Are you asking how to use loops? Go to this page: http://www.cplusplus.com/doc/tutorial/control/ and scroll down to where it says Iteration structures (loops). I think that should help. If there's anything you don't understand about them, don't hesitate to ask!