CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2010
    Posts
    7

    [RESOLVED] Need help placing do while loop

    Wrong forum, sorry.
    Last edited by Ruthless; December 3rd, 2010 at 01:55 PM.

  2. #2
    Join Date
    Jul 2009
    Location
    India
    Posts
    835

    Re: Need help placing do while loop

    what needs to be done to ask the user if they want to run the program again
    I have not go through your long code but here is the solution for the quoted text.

    Code:
    char choice;
    
    do {
    ...
    ...
    your program
    ...
    ...
    cout<<"want to continue (y/n): ";
    cin>>choice;
    } while (choice != 'n');
    And one more thing. This forum is used for VC++ so post C/C++ related query in Non VC++ forum.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured