一个小游戏3.1
2026-01-02 21:18:54
发布于:浙江
一个小游戏,放心,很安全的,没有Windows库
3.1版本来啦!!!欢迎各路大佬给出建议。
解决了没法输出每局的输入。









广告:一个小团队聊天室入口 一个小团队入口
评论一下吧,给个赞吧!!!
#include<iostream>
#include<string>
using namespace std;
struct s{
string one;
string two;
string three;
}a,b,c;
int main(){
cin>>a.one;
cin>>b.two;
cin>>c.three;
if(a.one=="石头" || b.two=="石头" || c.three=="石头"){
cout<<"我:石头"<<" "<<"机器人:布"<<endl;
}if(a.one=="剪刀" || b.two=="剪刀" || c.three=="剪刀"){
cout<<"我:剪刀"<<" "<<"机器人:石头"<<endl;
}if(a.one=="布" || b.two=="布" || c.three=="布"){
cout<<"我:布"<<" "<<"机器人:剪刀"<<endl;
}
cout<<endl;
cout<<"第1局胜:机器人"<<endl;
cout<<"第2局胜:机器人"<<endl;
cout<<"第3局胜:机器人"<<endl;
}
这里空空如也


















有帮助,赞一个