Motorola Axiom CMD11E1 Uživatelská příručka Strana 58

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 101
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 57
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;
}
Zobrazit stránku 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 100 101

Komentáře k této Příručce

Žádné komentáře