From: Reid T. <rei...@at...> - 2006-01-05 05:35:50
|
Ben Miller wrote: > A quick question, by someone very new to c++. > I have a for loop I am putting in a project, this is what it looks like. > for(i = 10; i != 0; i--) > { > cout >> i >> endl; sleep(3); > } > > When i comple it, it will just show all the numbers at once. > My question is, how do I make the program pause itself, then start > itself again, after each number is shown? > I want it to be like a count down. > > Thank you very much. > > ------------------------------------------------------------------------ > Yahoo! DSL > <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=37474/*http://promo.yahoo.com/broadband/%20> > Something to write home about. Just $16.99/mo. or less |