Thread: Restart the c++ program

  1. #1
    Registered User
    Join Date
    Mar 2013
    Posts
    1

    Restart the c++ program

    HI!
    I have to make a 8-puzzle and I got the algorithm i just dont know how to restart the program every time i type the move of the blank place in the 3x3 puzzle so i dont have to make 10000 lines to solve the puzzle
    Last edited by Alban; 03-05-2013 at 07:39 AM. Reason: forgot something to write down

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Read up on control primitives in C++ (for example, tutorials on this site), then make a flowchart using those primitives that shows how you intend for it to work.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    They're normally called control structures, in case use of the word primitives turns up some strange stuff.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program will not restart properly
    By nelly26 in forum C Programming
    Replies: 12
    Last Post: 04-22-2012, 06:25 PM
  2. How to restart a program using loop?
    By NewbieCProgramm in forum C Programming
    Replies: 4
    Last Post: 12-05-2011, 10:41 AM
  3. restart the program
    By kellymart87 in forum C++ Programming
    Replies: 15
    Last Post: 04-17-2007, 10:04 PM
  4. restart program
    By kellymart87 in forum C++ Programming
    Replies: 2
    Last Post: 04-16-2007, 11:18 PM
  5. How to restart a program without closing it...
    By D4050 in forum C++ Programming
    Replies: 16
    Last Post: 10-31-2001, 12:38 PM