home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
datafiles
/
text
/
c_tutor
/
singleio.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-02-27
|
292b
|
16 lines
#include "stdio.h"
main()
{
char c;
printf("Enter any characters, terminate program with X\n");
do {
c = getch(); /* get a character */
putchar(c); /* display the hit key */
} while (c != 'X');
printf("\nEnd of program.\n");
}