home *** CD-ROM | disk | FTP | other *** search
- /* INTRO22.C - Beispiel aus Kapitel 4 der
- Einführung */
-
- #include <stdio.h>
- #include <string.h>
- #include <conio.h>
-
- int main()
- {
- int pos;
- char text [130];
-
- printf("Mit 'Ende' beenden\n");
-
- while (strcmp(gets(text), "Ende") != 0)
- {
- for (pos = 1; pos <= strlen(text); pos++)
- putch('-');
- printf("\n");
- }
-
- return 0;
- }
-