C언어 _kbhit,_getch
아론아브라함
2023.04.01
#include stdio.h
#include conio.h
#include windows.hint main(vdoi)
{
char str[10] = {0,};
int nIndex = 0,nKey; while ( 1 )
{
if (_kbhit())
{
nKey = _getch();
str[nIndex++]=nKey;system(cls);
printf(%s,str);
}
} }제가 공부하고 있는 책안에있는 예제입니다예제를 책으로만 봐서 이해가 안되네요.. 설명좀부탁드립니다 ㅎ