版本比较
BF 语言的神秘技巧
正文
增加 2 行删除 2 行
43 行未改动444546474849505152535455565735 行未改动43 行未改动if(argc<2){puts("Your source file is missing! Or you might be running the interpreter in a dev.\n");return 0;}ifstream file(argv[1]);// ifstream file("test.bf");src=string(istreambuf_iterator<char>(file),istreambuf_iterator<char>());file.close();p=new Unit();i=0,len=src.size();while(i<len){if(src[i]=='+') p->v++;35 行未改动43 行未改动444546474849505152535455565735 行未改动43 行未改动if(argc<2){puts("Your source file is missing! Or you might be running the interpreter in a dev.\n");return 0;}ifstream file(argv[1]);// ifstream file("test.bf");src=string(istreambuf_iterator<char>(file),istreambuf_iterator<char>());file.close();p=new Unit();i=0,len=src.size();while(i<len){if(src[i]=='+') p->v++;35 行未改动