#include<bits/stdc++.h>
using namespace std;
int main(){
fstream in("抽奖名单.txt");//在桌面新建一个文件,并输入抽奖名单
fstream out("抽奖结果.txt");
srand(time(0)) ;//随机种
string name; //名字
int score; //分数
int tot =0;
while(in >> name >> score){
cout << tot<< ":" << name << " 加分:" << score <<endl;
tot ++ ;
}
cout << "======== 本次中奖的号码是:========" << endl;
out << rand() % tot ;
return 0;
}