감 ¶
kbhit라든 time 들 본 -_- 검 다.
8 맞기 ...... 껌벅는게 1격라 맞기 다 +ㅁ+
8 맞기 ...... 껌벅는게 1격라 맞기 다 +ㅁ+
¶
~cpp
#include <stdio.h>
#include <conio.h>
#include <time.h>
int main()
{
int last;
//게 때 가기
last = time(0);
for(;;) {
//렀다!
if(kbhit())
{
// 난 == (time(0) - last)
if((time(0) - last)==8)
printf("you win!!! \n");
else
printf("your time is off. \n");
break;
}
}
getch();
return 0;
}










