Program Restart

I have Program Which is written in C++ . It is peogram which need to be restarted when network connection is lost ...

I have made program code which is pinging IP and i'm stuck on thet ...

Can anybody show me the code of next step

Thank you beforehand.
Make a loop so that you can jump back to the beginning of the program when you want
eg:
1
2
3
4
5
6
7
do
{
   //...
   if ( you_want_to_restart )
       continue;
   //...
} while ( some_condition_you_need or just ''true'' to have an infinite loop );
Topic archived. No new replies allowed.