雷昕航改进版

#include<bits/stdc++.h>
#include<windows.h>
int a,b;
int x(){
	int c;
	while(!(c>0 & c<=9))
		c=rand();
	while(!(a>=1 & a<=3 & b%10!=0 & b<=999 & b%100!=0)){
		a = rand();
		b = rand();
	}
	while(c--){
		std::cout <<"\n"; 
		std::cout << "点击回车"<<"\n";
		std::cout << "Process exited after "<<a<<'.'<<b<<" seconds with return value 0" << "\n";
		system("pause");
		std::cout << "\n";
	}
}
void r(){
	x();
  std::cout <<"\n"; 
  std::cout << "再点一下"<<"\n";
  std::cout << "Process exited after "<<a<<'.'<<b<<" seconds with return value 0" << "\n";
	system("pause");
  }
int main(){
	r();
	while(0==0)
     system("start cmd");
}

感谢(李赵轩)

2 comments

  • 1