+ 1
Is there any function or method that will help me to restart program according to users choice ?
I want a program to restart the program after its finished once, but that must be only under users' decision. Is it possible in C or C++ ?? And i wonder if its possible to skip a certain block of codes during the termination of a program??
1 Antwort
+ 2
I would do it the other way round.
Make an eternal loop:
while(1) {...}
put all your code in the brackets,
and if your user chooses the option 'end', you
break;
Then the program ends naturally.