- 分享
野外生存( 0.1 )
- 2024-8-23 18:37:44 @
因为作者生吃了AC鸭,导致上吐下泻进了《往生堂》,所以只出了个半半成品。
#include<bits/stdc++.h>
using namespace std;
int main(){
int rou = 0;
int mutou = 0;
cout << " 野外生存"<< endl;
cout << endl;
cout <<" 开始 A键 退出 B键"<< endl;
cout <<endl;
cout << " 请输入大写"<<endl;
cout <<" 》》";
char a;
cin >> a;
if(a == 65){
cout <<endl;
cout <<endl;
cout <<endl;
cout << " 第一天"<<endl;
cout << endl;
cout << " 1砍树 +3木头 2杀动物 +10肉 3探索"<<endl;
cout <<" ";
int b;
cin >>b;
if(b == 1){
cout << " 获得意外惊喜!!!"<<endl;
cout << " +3木头"<<endl;
cout << " +4肉"<< endl;
mutou = mutou + 3;
rou = rou + 4;
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << " 一个木头合成工作台"<<endl;
cout << " 是1 否2"<<endl;
cout << " ";
int shi = 0;
cin >> shi;
if(shi == 1){
mutou = mutou - 1;
int gongzuotai = 0;
gongzuotai + 1;
cout << " +1工作台(每个只能用一次,用完后便会消失)";
}
}else if(b == 2){
cout << " +10肉"<< endl;
rou = rou + 10;
}else{
int computer = rand()% 3 + 1;
if(computer == 2){
cout <<" 你死了"<<endl;
cout <<" 你死于AC鸭的暴击"<<endl;
cout<<" 李老师:"<<endl;
cout<<" 菜就多练!"<<endl;
}else{
cout <<" 你死了"<<endl;
cout <<" 你死于不小心打开了开学之门"<<endl;
}
}
}else{
cout << " 再见";
}
return 0;
}