- 分享
1234
- 2024-1-11 22:05:02 @
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
string youximima;
long long zhanghu;
long long denglu()
{
cout << "请输入考号:" ;
long long s;
bool panduan=0;
cin >> s ;
if(MessageBox(NULL,"是否确认登陆","提示",MB_YESNO)==IDYES) return s;
else denglu();
}
string zhanghaojiansuo(long long p)
{
long long duquzhanghao=0;
string xingming;
for(;int i=0;i!=1;)
{
cin >> duquzhanghu >> xingming ;
if(duquzhanghao==p) return xingming;
}
}
int main()
{
cout << "通行口令:" ;
cin >> youximima ;
if(youximima!="状元") return 0;
zhanghu=denglu();
freopen("名单.txt","r",stdin);
zhanghaojiansuo(zhanghu);
return 0;
}
1 comments
-
Steven Wang 状元 LV 9 @ 2024-1-11 22:05:27
自己写的小游戏暂存一下,还没写完,不用管我发癫
- 1