View Single Post
Join Date: Jul 2008
Posts: 320
Reputation: cikara21 is an unknown quantity at this point 
Solved Threads: 63
cikara21's Avatar
cikara21 cikara21 is offline Offline
Posting Whiz

Re: How can I add a loop for this code

 
0
  #2
Dec 1st, 2008
Simply..
  1. //...
  2. char rep='n';
  3. //display the menu and get user's choice
  4. while(tolower(rep)=='n')
  5. {
  6. //...Menu
  7. cout<<"repeat? [y/n] : ";
  8. cin>>rep;
  9. }
  10. return 0; //bye..
.:-cikara21-:.
Reply With Quote