(・∀・)C/C++の宿題やらせてください。ver10
■ このスレッドは過去ログ倉庫に格納されています
0593デフォルトの名無しさん
NGNG#include <stdio.h>
#include <time.h>
#include <conio.h>
#define WAIT 5
int main(void)
{
int pushOne=0;
clock_t start=clock()/CLOCKS_PER_SEC;
for(;clock()/CLOCKS_PER_SEC-start<=WAIT;)
if(kbhit()&&getch()=='1') pushOne++;
printf("'1'を%d回押しました\n",pushOne);
return 0;
}
■ このスレッドは過去ログ倉庫に格納されています