U E D R , A S I H C RSS

시간맞추기/문보창

소감

코드

~cpp 
#include <conio.h>
#include <iostream>
#include <ctime> 
using namespace std;

int main()
{
	time_t start = time(0);
	while (!kbhit())
		;
	time_t gap = time(0) - start;
	if (gap == 8)
		cout << "you win!!!\n";
	else
		cout << "your time is off.\n";
	return 0;
}

나한테 할 말

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