¶
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; }