#include<iostream>#include<ctime>#include<windows.h>#include<stdlib.h>#include<cstring>usingnamespace std;constint N =10;voidJUDGE(int& a,int& b);intmain(){
Repeat:unsignedlonglong BeginTime =0;unsignedlonglong EndTime =0;
BeginTime =::GetTickCount64();//以上为计时开始int max1 =0, max2 =0, temp1 =-1, temp2 =-1;int choose;int a[N];int b[N];srand((unsignedlong)time(0));//声明变量区//以下为输入方式选择,可选择自动生成随机数或手动输入
cout <<"Please choose one way following to input ten positive integers: "<< endl;
cout <<"The first way is that you input these numbers personally."<< endl;
cout <<"The second way is that the computer helps you to creat ten numbers randomly."