版本比较
手写dev(下半)
正文
增加 17 行删除 17 行
18 行未改动1920212223242526272829303132332324252627282930313233343536373837383940414217 行未改动6061626364646566676823 行未改动929394959696979899100149 行未改动全部展开2502512522532542542552562572589 行未改动268269270271272272273274275276151 行未改动全部展开18 行未改动bool tab[N + 10][N + 10];int len[N + 10], n;namespace CL{ string Reserved_word[48] = { "asm", "double", "new", "switch", "auto", "else", "operator", "template", "break", "enum", "private", "this", "case", "extern", "protected", "throw", "catch", "float", "public", "try", "char", "for", "register", "typedef", "class", "friend", "return", "union", "const", "goto", "short", "unsigned", "continue", "if", "signed", "virtual", "default", "inline", "sizeof", "void", "delete", "int", "static", "volatile", "asm", "double", "new", "switch", "auto", "else", "operator", "template", "break", "enum", "private", "this", "case", "extern", "protected", "throw", "catch", "float", "public", "try", "char", "for", "register", "typedef", "class", "friend", "return", "union", "const", "goto", "short", "unsigned", "continue", "if", "signed", "virtual", "default", "inline", "sizeof", "void", "delete", "int", "static", "volatile", "do", "long", "struct", "while" }; char Symbol[24] = { '~', '!', '%', '^', '&', '*', '(', ')', '-', '=', '+', '[', ']', '{', '}', '|', ';', ':', '<', '>', '~', '!', '%', '^', '&', '*', '(', ')', '-', '=', '+', '[', ']', '{', '}', '|', ';', ':', '<', '>', ',', '.', '?', '/' }; inline int check_RW(int x, int y, int z){ for(int i = 0; i < 48; i++){17 行未改动 }}inline void print(){ color(15); int flag__ = 0, flag___ = 0; int flag__ = 0, flag___ = 0; for(int i = 0; i <= n; i++){ int flag = a[i][0][1] == '#'; int flag1 = 0, flag2 = 0; int flag_ = 0;23 行未改动 flag2 ^= 1; if((flag1 || flag2) && !flag) color(10); if(!flag && !flag1 && !flag2){ //输出keyword //输出keyword if(CL::check_RW(i, j, 1) != -1){ gotoxy(i, j); int val = CL::check_RW(i, j, 1); color(14);149 行未改动全部展开 if(tab[nowx][nowy + 1]) nowy += 2; if(tab[nowx][nowy]) nowy++; } } inline int main(){ while(1){ if(_kbhit()){ int ch = getch();9 行未改动 if(tab[nowx][nowy]) nowy -= 3; break; } case 0x48:{//方向键(↑) case 0x48:{//方向键(↑) if(nowx){ nowx--; nowy = min(nowy, len[nowx]); }151 行未改动全部展开