Thread: Start over a program?

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    5

    Start over a program?

    Alright, so I'm in the process of making an application that will convert alot of stuff. The user will be able to choose what type of converter they wanna use etcetc. The problem is that I want the program to ask something like "Would you like to continue? Y/N" or something similar. If they choose yes the program will start from the beginning or the latest menu. Feel free to ask if you didnt quite understand what I meant.

    Any ideas?

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Make a loop?

  3. #3
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,732
    Code:
    int cnf;
    do
    {
      ...
      ...
      cnf = getchar();
    } while( cnf != 'n' && cnf != 'N' )
    ssharish
    Life is like riding a bicycle. To keep your balance you must keep moving - Einstein

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Best Way to Start a Second Program?
    By Adak in forum C Programming
    Replies: 6
    Last Post: 08-13-2009, 01:54 AM
  2. Get program to copy itself into program files, then start on startup.
    By guitarist809 in forum Windows Programming
    Replies: 6
    Last Post: 03-03-2008, 09:42 AM
  3. best program to start
    By gooddevil in forum Networking/Device Communication
    Replies: 4
    Last Post: 05-28-2004, 05:56 PM
  4. Start up program
    By Breetai in forum Windows Programming
    Replies: 2
    Last Post: 01-11-2003, 01:12 PM
  5. start another program
    By lshome in forum C Programming
    Replies: 3
    Last Post: 06-24-2002, 01:48 PM