#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int a;
int b=5;
int u=5;
int t=0;
int s=3;
int r=3;
int z;
int shiwu;
int shui;
int shangre;
int hujia=0;
int dao=0;
int ygl=150;
int sj=7;
int gdo=0;
int lz=0;
int wgj=0;
int dc=0;
int pg=0;
int bb=0;
int main(){
cout<<"你好,求生者"<<endl;
Sleep(500);
cout<<"欢--迎--来--到--荒--地--求--生"<<endl<<endl;
Sleep(1000);
cout<<"你所在的城市遭受了一次大地震"<<endl;
Sleep(3000);
cout<<"你现在需要生存"<<endl;
for(int i=1;;i++)
{
system("cls");
if(b<=0)
{
cout<<"你饿死了"<<endl;
break;
}
if(u<=0)
{
cout<<"你渴死了"<<endl;
break;
}
t++;
cout<<"第"<<t<<"天"<<endl;
Sleep(3000);
if(t>=10)
{
shangre=rand()%1200;
if(shangre>=45&&shangre<48)
{
cout<<"废墟中走来一个商人,他说:你可以给我5个食物或是水吗?我可以给你1个护甲。"<<endl;
Sleep(300);
cout<<"1.给他食物 2.给他水 3.大喊:“滚开!”"<<endl;
cin&g