Restarting a program

I have made an area calculator that correctly tells you your area of 6 shapes depending on the information givin. But it's not complete yet, I need it so when you are done finding the area, that it restarts instead of ending the program. Can someone help me?
closed account (z05DSL3A)
1
2
3
4
5
6
7
8
9
10
11
12
13
...

int main()
{
    bool done = false;
    while(!done)
    {
          // your code here
          
         // ask use if they want to exit
         //  if so set done = true;
    }
}
Last edited on
Oh, i would have never of thought of that, thank you very much
Topic archived. No new replies allowed.