版本比较
猫咪小镇(仅供参考)
正文
增加 13 行删除 13 行
13 行未改动14151617181819202122232324252627272829303141 行未改动73747576777778798081818283848530 行未改动11611711811912012012112212312413 行未改动1381391401411421421431441451462 行未改动149150151152153153154155156157158159160161162163163164165166167263 行未改动全部展开431432433434435435436437438439276 行未改动全部展开7167177187197207207217227237243 行未改动72872973073173273273373473573629 行未改动76676776876977077077177277377425 行未改动13 行未改动void color(int a){ SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),a);}void HideCursor(){ CONSOLE_CURSOR_INFO cursor_info = {1, 0}; CONSOLE_CURSOR_INFO cursor_info = {1, 0}; SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE), &cursor_info);}void block(int x,int y){ HANDLE hCon; hCon = GetStdHandle(STD_OUTPUT_HANDLE); hCon = GetStdHandle(STD_OUTPUT_HANDLE); COORD setps; setps.X = x; setps.Y = y; SetConsoleCursorPosition(hCon,setps); SetConsoleCursorPosition(hCon,setps);}bitset<128>pre;bitset<128>down;void pan(char c){41 行未改动{0, 1},{0, 1}};string hengs[31] = {"0", "营火", "小村庄", "科学", "成就", "工坊", "贸易", "独角兽"};string shus[31][101] = {{"0"}, string shus[31][101] = {{"0"},{"0", "采集猫薄荷", "猫薄荷田", "锻造木头", "小屋", "图书馆", "粮仓", "矿井", "工坊"},{"0", "伐木工", "农民", "学者", "猎人", "矿工"},{"0", "日期", "农业", "箭业", "采矿", "畜牧业", "金属加工", "行政部门", "数学", "建筑业"}}; };int shus1[101] = {0, 1, 2, 3, 4, 5, 6, 7, 8};int shus2[101] = {0, 1, 2, 3, 4, 5};bool z1[1010];int hengl = 2, shul[31] = {0, 4, 0, 1};30 行未改动double xiangya = 0.0;bool xinqing1 = false;int xinqing = 100;int tim0 = 0, tim1 = 1, tim2 = 1, tim3 = 0;int timm1 = 0, timm2 = 0; int timm1 = 0, timm2 = 0;string tim[5] = {"0", "春季", "夏季", "秋季", "冬季"};bool h1 = true;
bool pai1(int x1, int y1){13 行未改动 }else{ printf("%.1fM", x); } }else{ cout << x << "M"; cout << x << "M"; } }else if(x >= 10000){ x /= 1000; if((int)x != x){2 行未改动 }else{ printf("%.1fK", x); } }else{ cout << x << "K"; cout << x << "K"; } }else{ if((int)x != x){ if((int)(x * 10) / 10.0 != x){ printf("%.2f", x); }else{ printf("%.1f", x); } }else{ cout << x; cout << x; } }}
263 行未改动全部展开 block(43, x3 * 3 + 1); if(zz31[shu[3][y3]]){ cout << "已研发"; }else{ cout << "1.研发"; cout << "1.研发"; output(zz32[shu[3][y3]]); cout << "科技点"; } color(0 + 15 * 16);276 行未改动全部展开 maopi1 = true; maopi += sui1 / 100.0; if(sui3 == 0){ xiangya1 = true; xiangya += sui2 / 100.0; xiangya += sui2 / 100.0; } } } }3 行未改动 bohe1 += zz15[2] * 0.063 * 0.25; }else{ bohe1 += zz15[2] * 0.063; } bohe1 -= cat1 * 0.4; bohe1 -= cat1 * 0.4; mutou1 += zz21[1] * 0.009 * xinqing / 100; bohe1 += zz21[2] * 0.5 * xinqing / 100; keji1 += zz21[3] * 0.0175 * (1 + 0.1 * zz15[5]) * xinqing / 100; catli1 += zz21[4] * 0.03 * xinqing / 100;29 行未改动 if(zz22 <= 0){ for(int i = 1; i <= shul[2]; i++){ if(zz21[shu[2][i]] > 0){ zz21[shu[2][i]]--; break; break; } } }else{ zz22--;25 行未改动