Hello, i am new here. I was wondering is there was a way to tell a script to return to the beginning and start everything over again. like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <iostream>
usingnamespace std;
int main()
{
int num;
cout<<"Enter #\n";
cin>>num;
cin.ignore();
if (num == 1)
{
///////////////////////////////SOMETHING HERE TO MAKE IT RETURN
///////////////////////////////AND DO EVERYTHING AGAIN.
}
}