감 ¶
각 게 ,
걸.
그 까 ..;
간 .
kbhit() , 1, 0 .

그 까 ..;
간 .
kbhit() , 1, 0 .
그고, 그 . 겠. 8 게 !! ㅋㅋㅋ
! ㅋㅋ
¶
~cpp #include <stdio.h> #include <conio.h> #include <time.h> void main() { time_t record = 8; time_t start_t; start_t = time(0); printf("wait 8 seconds...\n"); printf("and press any key exactly..."); for( ; ; ) { if (kbhit()){ if(start_t - record == 0) { printf("You win !!\n"); }else{ printf("your time is off."); } break; } } getch(); }
. 8 ㅠ .
↓↓ 고
↓↓ 고
~cpp #include <stdio.h> #include <conio.h> #include <time.h> void main() { time_t record = 8; time_t start_t; start_t = time(0); printf("wait 8 seconds...\n"); printf("and press any key exactly..."); for( ; ; ) { if (kbhit()){ if(time(0) - start_t == record) { printf("You win !!\n"); }else{ printf("your time is off."); } break; } } getch(); }! ㅎ
¶
~cpp #include <stdio.h> #include <conio.h> #include <time.h> void main() { time_t record = 8; time_t start_t; start_t = time(0); printf("wait 8 seconds...\n"); printf("and press any key exactly..."); for( ; ; ) { if (kbhit()){ if(time(0)-start_t == record-1 ) // { printf("You win !!\n"); }else{ printf("your time is off."); } break; } } getch(); }
까 ..^^
꺼 깝게 꿨.^^
time(0) 계 고고(time(0)-start_t ),
record 9( 0^^) -1 .
꺼 깝게 꿨.^^
time(0) 계 고고(time(0)-start_t ),
record 9( 0^^) -1 .