home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Fest 1993
/
gamefest1993stgcomputerslimited1993.iso
/
soft
/
ed
/
pro2
/
ch09_1.c
< prev
next >
Wrap
Text File
|
1989-11-10
|
496b
|
27 lines
#include "stdio.h"
main()
{
char input_char;
printf("Hit any key - to stop hit a $\n");
do {
input_char = getch();
printf("Input character is %c, numerical value is %3d\n",
input_char,input_char);
} while (input_char != '$');
}
/* Result of execution
Hit any key - to stop hit a $
Input character is A, numerical value is 65
Input character is B, numerical value is 66
...
(The display depends on the input keys hit)
*/