版本比较
BF编译器
正文
增加 23 行删除 23 行
15 行未改动1617181920212021222324232425262728173 行未改动全部展开20220320420520620620720820921018 行未改动22923023123223323323423523623720 行未改动25825926026126226226326426526620 行未改动287288289290291291292293294295134 行未改动全部展开43043143243343443443543643743867 行未改动5065075085095105105115125135144 行未改动51952052152252352352452552652741 行未改动56957057157257357357457557657712 行未改动5905915925935945945955965975984 行未改动60360460560660760760860961061142 行未改动654655656657658658659660661662122 行未改动全部展开78578678778878978979079179279316 行未改动81081181281381481481581681781866 行未改动88588688788888988989089189289345 行未改动93994094194294394394494594694722 行未改动97097197297397497497597697797824 行未改动100310041005100610071007100810091010101166 行未改动107810791080108110821082108310841085108620 行未改动110711081109111011111111111211131114111565 行未改动15 行未改动void colset(int a){ SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),a);}void Goto(int Y,int X){ COORD C; C.X=X; C.Y=Y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),C); COORD C; C.X=X; C.Y=Y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),C); }void Hide(){ CONSOLE_CURSOR_INFO cursor_info={1,0};void Hide(){ CONSOLE_CURSOR_INFO cursor_info={1,0}; SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_info);}bool got(){ GetCursorPos(&pt);173 行未改动全部展开 printf(" \n"); printf(" \n"); printf(" \n"); printf(" \n"); for(int i=0;i<h;i++){ for(int i=0;i<h;i++){ for(int j=0;j<10;j++){ printf(" "); } printf("\n");18 行未改动 printf(" \n"); printf(" \n"); printf(" \n"); break; } } } if(KEY_DOWN(MOUSE_MOVED)){ got(); if(pt.y>(10+sg3+(q-1)/175)*16&&pt.y<(14+sg3+(q-1)/175)*16&&pt.x>0&&pt.x<48){20 行未改动 printf(" \n"); printf(" \n"); printf(" \n"); printf(" \n"); for(int i=0;i<h;i++){ for(int i=0;i<h;i++){ for(int j=0;j<10;j++){ printf(" "); } printf("\n");20 行未改动 printf(" \n"); break; } } } } t1=clock(); } if(lo[nn]=='<') --now; else if(lo[nn]=='>'){134 行未改动全部展开 t1=clock(); sou1(1,q); t2=clock(); ti=ti+t2-t1; Goto(0,0); Goto(0,0); printf("Use %d ms to run...",ti); Sleep(1000);}void bpt(){67 行未改动 } Goto((qw-1)/175+3,(qw-1)%175); colset(12); printf("%c",lo[qw]); } } else if(hhhh=='s'||hhhh=='S'){ qw+=175; if(qw>q){ while(qw>q) qw-=175;4 行未改动 } Goto((qw-1)/175+3,(qw-1)%175); colset(12); printf("%c",lo[qw]); } } else if(hhhh==13){ bp[qw]=!bp[qw]; Goto(0,0); colset(12);41 行未改动 } Goto((qw-1)/175+3,(qw-1)%175); colset(12); printf("%c",lo[qw]); } } if(pt.y>64+(4+(q-1)/175)*16&&pt.y<128+(4+(q-1)/175)*16&&pt.x>48&&pt.x<96){ bp[qw]=!bp[qw]; Goto(0,0); colset(12);12 行未改动 } Goto((qw-1)/175+3,(qw-1)%175); colset(12); printf("%c",lo[qw]); } } if(pt.y>128+(4+(q-1)/175)*16&&pt.y<192+(4+(q-1)/175)*16&&pt.x>48&&pt.x<96){ qw+=175; if(qw>q){ while(qw>q) qw-=175;4 行未改动 } Goto((qw-1)/175+3,(qw-1)%175); colset(12); printf("%c",lo[qw]); } } if(pt.y>128+(4+(q-1)/175)*16&&pt.y<192+(4+(q-1)/175)*16&&pt.x>0&&pt.x<48) return; } } colset(15);system("cls");42 行未改动 int su=(q-1)/175+1; while(nn<=en&&aaaa){ got(); if(KEY_DOWN(MOUSE_MOVED)){ if(pt.y>32&&pt.y<48){ if(pt.y>32&&pt.y<48){ colset(15); Goto(1,2); printf("Pause..."); while(KEY_DOWN(MOUSE_MOVED)){122 行未改动全部展开 char haha; while(1){ got(); if(KEY_DOWN(MOUSE_MOVED)){ if(pt.y>32&&pt.y<48){ if(pt.y>32&&pt.y<48){ colset(15); Goto(1,2); printf("Pause..."); while(KEY_DOWN(MOUSE_MOVED)){16 行未改动 colset(12); } if(pt.y>0&&pt.y<64&&pt.x>808&&pt.x<856) return; } if(kbhit()){ if(kbhit()){ haha=getch(); if(haha==9){ aaaa=false; return;66 行未改动 if(qwer=='N'||qwer=='n') return; uu=100; colset(15);system("cls"); Goto(0,0); printf("Speed : 100 ms +----+\n"); printf("Speed : 100 ms +----+\n"); printf("← → |Exit|\n"); printf("------------------■------------------------------------------------------------------------------- | Tab|\n"); printf(" +----+\n"); mnn=0;45 行未改动void imf(){ colset(15);system("cls"); printf("This is a Brainfuck Compile System\n"); printf("Creater Imformatiom |Modifier Imformation\n"); printf("Name:\n"); printf("Name:\n"); printf("++++++++[->++++++++<]>+++ |+++++++++[->+++++++++<]>+\n"); printf("++<]>+++.<.<++++++[->++++ |++++++++.++++++++.<++++[-\n"); printf("+++[->+++<]>+.< |>++++<]>+++++.< \n"); printf("Nickname:\n");22 行未改动}int main(){ colset(15); system("mode con cols=175 lines=50"); Hide(); Hide(); r=false; xr=false; memset(sc,0,sizeof(sc)); memset(by,0,sizeof(by));24 行未改动 printf("|+---+ +----------+ +-----+|\n"); colset(15); printf("+----------Coding----------+"); printf("+-------About--------+"); if(!r) colset(8); if(!r) colset(8); printf("+-----------Running----------+\n"); colset(15); while(kbhit()) haha=getch(); while(1){66 行未改动 break; } if(haha=='H'||haha=='h'){ hlp(); break; break; } if(haha=='B'||haha=='b'){ if(r){ bpt();20 行未改动 } printf("+-----+\n"); printf("|Close|\n"); printf("| C|\n"); printf("+-----+\n"); printf("+-----+\n"); if(lk>45) lk=45; while(1){ Sleep(50);got(); if(kbhit()){65 行未改动