#include <bits/stdc++.h>
using namespace std;
string str;
bool pd=true;
int x1,x2,i=1,x3,sleep;
int kg=0;
void Delay(int time)
{
clock_t now=clock();
while(clock()-now<time);
}
int start ()
{
cout<<endl<<endl;
for(kg=0;kg<=75;kg++)
cout<<" ";
cout<<"欢迎来到校园模拟器系统"<<endl;
Delay(5*1000);
system("cls");
cout<<endl<<"你叫什么名字? " ;
cin>>str;
cout<<endl<<"班级选择 ";
cin>>x2;
system("cls");
for(kg=0;kg<=75;kg++)
cout<<" ";
cout<<endl<<"你好"<<x2<<"班的"<<str<<endl<<endl<<endl<<endl;
for(kg=0;kg<=75;kg++)
cout<<" ";
cout<<"1.开始游戏"<<endl;
for(kg=0;kg<=75;kg++)
cout<<" ";
cout<<"2.退出游戏"<<endl;
cin>>x1;
if(x1==2)
{
cout<<"再见"; Delay(2*1000); system("cls");return 0;
}
}
int yd()
{
system("cls");
for(kg=0;kg<=75;kg++)
cout<<" ";
cout<<"背" ;Delay(0.7*1000);cout<<"景";Delay(0.7*1000);cout<<":";
cout<<"你";Delay(0.7*1000);cout<<"是";Delay(0.7*1000);cout<<"一";Delay(0.7*1000);cout<<"个";Delay(0.7*1000);
cout<<"苦逼";Delay(0.7*1000);cout<<"的";Delay(0.7*1000);cout<<"学生狗"<<endl;
for(kg=0;kg<=75;kg++)
cout<<" ";
cout<<"╭︿︿︿╮"<<endl;
for(kg=0;kg<=75;kg++)
cout<<" ";
cout<<"{/ @ @ /}"<<endl;
for(kg=0;kg<=75;kg++)
cout<<" ";
cout<<" ( (oo) ) "<<endl;
for(kg=0;kg<=75;kg++)
cout<<" ";
cout<<" ︶︶︶ "<<endl;
Delay(3*1000);
system("cls");
}
int days( )
{
pd=false;
for(kg=0;kg<=75;kg++)
cout<<" ";
cout<<"今 天 是 第 "<<i<<" 天"<<endl<<endl;
for(kg=0;kg<=75;kg++)
cout<<" ";
cout<<"你要干什么?"<<endl;
for(kg=0;kg<=75;kg++)
cout<<" ";
cout<<"1.上课"<<endl;
for(kg=0;kg<=75;kg++)
cout<<" ";
cout<<"2.玩"<<endl;
if(sleep<5)
{
for(kg=0;kg<=75;kg++)
cout<<" ";
cout<<"3.睡觉"<<endl;
}
cin>>x3;
//if()
//else if()
//else if()
//else
if(x3==3&&sleep<5)
{
cout<<"你选择了睡觉,将度过一天"<<endl;
i++;
sleep++;
system("cls");
}
else if(sleep>=5)cout<<"你不能睡觉了"; //干扰其他
}
int main()
{
start();
yd();
if(pd)
for(int m=i;m<=i+1;m++)
days();
}