what i want to do is a loop that asks for yes or no to continue adding names
how can i do this i cant seem to get it to work right!
Code:
while (( choice = menu()) != 6 ) {
switch( choice )
{
case 1:
printf("yes\n");
break;
case 2:
break;
case 3:
break;
case 4:
// what i would like to do here is a loop that asks
// a y to continue adding names or a n to quit..
printf( "customers first name:\n");
fgets(seat[i].fname, sizeof seat[i].fname , stdin);
printf("test = %s\n", seat[i].fname);
printf( "customers last name:\n");
fgets( seat[i].lname, sizeof seat[i].lname , stdin );
printf( " continue ( y n ) ? \n");
}