#include<bits/stdc++.h>
using namespace std;
string a[] = {"肯德基pp", "麦当劳bb", "必胜客xx"} ;
int main(){
srand(time(0) );//制作一个随机种子
int p=0,b=0,x=0;
for(int i=0; i<10000; i++){
int t = rand() % 3;//出一个不超过3的数[0,1,2]
if(t == 0){
p++;
}else if(t == 1){
b++;
}else{
x++;
}
}
cout<<"随机按键开始进入倒计时!!!!!"<<endl;
system("pause") ;
cout << "倒计时:" << 3 << endl;
system("pause") ;
cout << ">>>>" << 2 << endl;
system("pause") ;
cout << ">>>>" << 1 << endl;
system("pause") ;
cout << "==================本场抽签的结果是:==========\n";
cout << "p: 代表 " <<a[0] << "结果是: "<< p << endl ;
cout << "b: 代表 " <<a[1] << "结果是: "<< b << endl ;
cout << "x: 代表 " <<a[2] << "结果是: "<< x << endl ;
cout << "==================本场抽签结束==========";
return 0;
}