restart program

This is a discussion on restart program within the C++ Programming forums, part of the General Programming Boards category; is there something to use besides a do while loop to restart the program. Maybe a function call?...

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    10

    restart program

    is there something to use besides a do while loop to restart the program. Maybe a function call?

  2. #2
    Registered User
    Join Date
    Nov 2004
    Location
    Pennsylvania
    Posts
    434
    i've always used the while loops, i find they are the best, you could have a recursive function i suppose but i don't think that's the best way to go, and you could have a goto call but again i don't think that's the best way to do it.

    Maybe someone else can help you out, i've always used while loops
    "Anyone can aspire to greatness if they try hard enough."
    - Me

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,485
    More answers here restart the program
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 02-21-2008, 09:39 AM
  2. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  3. Replies: 3
    Last Post: 03-04-2005, 01:46 PM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21