版本比较
猜数字
正文
增加 7 行删除 7 行
8 行未改动910111213131415161728 行未改动4647484950505152535425 行未改动8081828384848586878816 行未改动10510610710810910911011111211395 行未改动20921021121221321321421521621747 行未改动2652662672682692692702712722739 行未改动28328428528628728728828929029124 行未改动8 行未改动#include<conio.h>#include<fstream>#include<cstring>#include<ctime>#define N 2 #define N 2#define M 3using namespace std;bool mord[M+1];int maxc[M+1],c[M+1]={0},np,point[10];28 行未改动{color(192);printf("%s",chti);}else else{color(240);for(int i=1;i<=strlen(chti);i++)printf(" ");25 行未改动int set_g(int set1){system("cls");bool setmord[N+1][M+1]={{1,0,0,0}, //空行 {{1,0,0,0}, //空行{1,1,1,0},{1,1,1,1}};map<int,string>ma;char chti[10]={" ·>"};16 行未改动{color(192);printf("%s",chti);}else else{color(240);for(int i=1;i<=strlen(chti);i++)printf(" ");95 行未改动if(ld==2)printf("被跳过\n");elseswitch(lz){case 1:color(252);point[l]+=7;printf("近在眼前\n");break; case 1:color(252);point[l]+=7;printf("近在眼前\n");break;case 2:color(253);point[l]+=5;printf("百步之遥\n");break;case 3:color(249);point[l]+=3;printf("仰望莫及\n");break;case 4:color(240);point[l]+=1;printf("远在天边\n");break;}47 行未改动if(ld==-1) printf("小了 ");if(ld==0)printf("出错\n");switch(lz){case 1:color(252);printf("近在眼前\n");break; case 1:color(252);printf("近在眼前\n");break;case 2:color(253);printf("百步之遥\n");break;case 3:color(249);printf("仰望莫及\n");break;case 4:color(240);printf("远在天边\n");break;}9 行未改动ans=ans+em*em1;if(em==1)fw1+=2*c[2];elsefw2-=2*c[2]; fw2-=2*c[2];}Sleep(1000);system("cls");}24 行未改动