58 CHAPTER 4. PROGRAMS
if (c == ’1’) goto one;
if (c == ’2’) goto two;
fprintf(stderr,"\n\nNot a valid choice!\n");
goto foo;
one:
fprintf(stderr,"Good choice. \n");
goto more;
two:
fprintf(stderr,"Try later\n");
more:
fprintf(stderr,"Try again? ");
c = getche();
if (c == ’y’) goto foo;
if (c == ’Y’) goto foo;
if (c == ’n’) goto bye;
if (c == ’N’) goto bye;
goto more;
bye:
return;
}
Comentários a estes Manuais