hi,
can I call main() in other function. if so how?!
I need to go back and start again my program tell me how can I do this
thanks alot
This is a discussion on return to main or restart program within the C Programming forums, part of the General Programming Boards category; hi, can I call main() in other function. if so how?! I need to go back and start again my ...
hi,
can I call main() in other function. if so how?!
I need to go back and start again my program tell me how can I do this
thanks alot
You should not.
Use a loop.I need to go back and start again my program tell me how can I do this
And use your creativity.
It's not difficult to imagine a way.
If another function has the need to return the the beginning of a program, it could return something that tells main it wants to go back to the beginning, for example.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
If you're serious, you need to get back to the books. Actually, no, you have to get back to the books even if you're joking.
runProgram() would contain your program.Code:... int main(void) { int continue; while((continue = runProgram())); return 0; } ...
thanks![]()