#include <iostream>
#include "back.h"
using namespace std;
int yesno (int min, int max)
{
int choice1;
do
{
cout << "Please enter one of the above numbers.\n";
cin >> choice1;
cout << endl;
}
while( choice1 < min || choice1 > max);
return( choice1 );
}
void back ()
{
int choice1, i;
char *back[3] = {"Is this your choice?", "1: Yes", "2: No"};
for (i = 0; i < 3; i++)
cout << back[i] << endl;
choice1 = yesno (1, 2);
if (choice1 == 1)
while () {continue};
if (choice1 == 2)
do
{
begin ();
choice = getchoice (1, 2);
cout << endl;
}
while(choice1 == 2);
return (choice1);
}
but it will not work either. Please help anyone. Thanks!











