#include<stdio.h>
#include <iostream>
#include<stdlib.h>
#include<Windows.h>
#include<ctime>
#include<iso646.h>
void main()
{
using namespace std;
/*float sec;
cin >> sec;
clock_t delay = sec * CLOCKS_PER_SEC;
cout << "start\n";
clock_t start = clock();
while (clock() - start < delay)
;
cout << "done";
cout.setf(iostream::boolalpha);
char32_t x = U'\U0000222B';*/
int i[2];
for(int j = 0;j < 2;j++)
{
while (!(cin >> i[j]))
{
cin.clear();
cout << "请重新输入";
while (cin.get() != '\n')
continue;
}
}
/*cin >> a;
cin >> b;
cout << b;*/
system("pause");
}
Clock_t类的使用
最新推荐文章于 2024-01-14 15:07:13 发布