// ConsoleApplication1.cpp: 콘솔 응용 프로그램의 진입점을 정의합니다.
//
#include "stdafx.h"
#include "conio.h"
int main()
{
int count = 0;
while (1) {
if (_kbhit())
{
_getch();
count++;
continue;
}
printf("%d", count);
count = 0;
}
}
내가 할려던거는 그냥
키보드아무거나 누르고있으면 count 증가시켜서
키보드땔때 count값 출력하는거 할려는게 목표엿는데 왜 안되지???
댓글 0