const int MAX=10;
srand(time(0));
int m,n,countm,countn;
countm=countn=0;
for(int i;i<MAX;i++){
m=rand()%3+1;
cout<<"You are J J BOND,come on!"<<endl;
cout<<"1,2,3,J J BOND"<<endl;
cin>>n;
if(n<1||n>3) cout<<"qingshuru,cijuwuxiao"<<endl;
else{
switch(m-n){
case-2:
case 1:cout<<"超比组合胜"<<endl;countm++;break;
case 0:cout<<"平局"<<endl;break;
default:cout<<"J J BOND胜"<<endl;countn++;break;
}
}
}
cout<<"超比组合胜:"<<countn<<endl;
cout<<"J J BOND胜"<<countn<<endl;
return 0;
}