i have a program which performs several actions but once it has completed these the program exits. how do i get the program to return to the first prompt so that it can repeat the program again? I aren't sure which loop to use
thanks
i have a program which performs several actions but once it has completed these the program exits. how do i get the program to return to the first prompt so that it can repeat the program again? I aren't sure which loop to use
thanks
something of this sort
#include <iostream.h>
void main()
{
char decision;
do
{
//(main program here)
cout << "Want to return to beginning Y or N";
cin >> decision;
}
while(decision != 'n' && decision !='N');
}