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.0371 sec