This shows you the differences between two versions of the page.
c:conio.h:getch [2013/02/03 16:21] 158.181.88.241 |
c:conio.h:getch [2024/02/16 01:05] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== getch ====== | ====== getch ====== | ||
<code c> | <code c> | ||
- | int getchar(); | + | int getch(); |
</code> | </code> | ||
Line 17: | Line 17: | ||
int c; | int c; | ||
printf("type in a letter on your keyboard :"); | printf("type in a letter on your keyboard :"); | ||
- | c = getchar(); | + | c = getch(); |
- | putchar(c); | + | putch(c); |
return 0; | return 0; | ||