版本比较
食物链模拟器【tcy01-game】
正文
增加 4 行删除 4 行
122345620 行未改动272829303131323334356 行未改动4243444546464748495076 行未改动127128129130131131132133134135```cpp#include <bits/stdc++.h> #include <bits/stdc++.h>#include <windows.h>#include <conio.h>using namespace std;const int BIOS_NUM=13;20 行未改动 cout<<t.name<<" 繁殖力:"<<t.fan<<"% "; if(t.s) cout<<"生产者"; else cout<<"猎食者"; putchar('\n'); cout<<"食物: "; cout<<"食物: "; for(int j=0;j<t.foodnum;j++) cout<<BIOS[t.food[j]].name<<" "; cout<<"\n\n"; }6 行未改动 memset(bios_st,0,sizeof bios_st); for(int i=0;i<BIOS_NUM;i++) { cout<<i+1<<"."<<BIOS[i].name<<"\n"; bios_tmp[i]=BIOS[i]; bios_tmp[i]=BIOS[i]; } cout<<"请输入指令:(编号 数量),输入114514开始游戏!\n"; int op,sum; while(true)76 行未改动 system("cls"); cout<<"1.动植物图鉴\n2.经典模式\n3.自定义模式\nR.退出并存档"; char ch=getch(); if(ch=='1') handbook(); if(ch=='2') jingdian(); if(ch=='2') jingdian(); if(ch=='R') break; }}```