home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / tcpp / examples / intro22.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-10  |  394 b   |  24 lines

  1. /* INTRO22.C - Beispiel aus Kapitel 4 der
  2.                Einführung */
  3.  
  4. #include <stdio.h>
  5. #include <string.h>
  6. #include <conio.h>
  7.  
  8. int main()
  9. {
  10.    int pos;
  11.    char text [130];
  12.  
  13.    printf("Mit 'Ende' beenden\n");
  14.  
  15.    while (strcmp(gets(text), "Ende") != 0)
  16.    {
  17.       for (pos = 1; pos <= strlen(text); pos++)
  18.          putch('-');
  19.       printf("\n");
  20.    }
  21.  
  22.    return 0;
  23. }
  24.