Datei: p6-4.c


    1   /*
    2    *      p6-4.c
    3    *      Beispielprogramm 4, Abschnitt 6
    4    *      Ausgabe eines Hilfetextes
    5    */
    6   
    7   #include <stdio.h>
    8   
    9   void help(int nr)
   10   { 
   11     switch (nr) {
   12       case 1:
   13         printf("Hilfe 1\n");
   14         break;
   15       case 2:
   16         printf("Hilfe 2\n");
   17         break;
   18       case 3:
   19         printf("Hilfe 3\n");
   20         break;
   21       default:
   22         printf("Fehlerhafter Aufruf von HELP\n");
   23     }
   24   
   25   } /* help() */


Erzeugt von c2html 1.01