U E D R , A S I H C RSS

시간맞추기/김태훈zyint

kbhit time -_- .
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;
}

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:30:17
Processing time 0.0071 sec