U E D R , A S I H C RSS

시간맞추기/남도연

~cpp 
#include <iostream.h>
#include <conio.h>
#include <ctime>

void main(){
	time_t start = time(0);
	while(1){
	if (kbhit()){		
		if (time(0)-start==8){
			cout<<"You win!!!"<<endl;
		}
		else {
			cout<<"your time is off."<<endl;
		}
		break;
	}
}
		getch();
}

ㅡㅡ 한 time kbhit() 황했 ;;
time(0) .. ㅠㅠ
└time(0), time(NULL) .. 1970 1 1 . unsigned long 형 , 히 1 1 . . -
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:30:17
Processing time 0.0147 sec