This commit is contained in:
Zengtudor 2024-09-17 17:49:56 +08:00
parent 1e6bc31f97
commit 6140f46fa4

View File

@ -28,12 +28,12 @@ int main(const int argc,const char *argv[]){
} }
for(auto i: zt::Range((size_t)0,argv1.size())){ for(auto i: zt::Range((size_t)0,argv1.size())){
if(argv1[i]==be_replaced[0]){ if(argv1[i]==be_replaced[0]){
for(auto j: zt::Range((size_t)0,be_replaced.size())){ for(auto j: zt::Range(be_replaced.size())){
if(argv1[i+j]!=be_replaced[j]){ if(argv1[i+j]!=be_replaced[j]){
goto out_of_match; goto out_of_match;
} }
} }
for(auto j:zt::Range((size_t)0,be_replaced.size())){ for(auto j:zt::Range(be_replaced.size())){
argv1[i+j]=to_replace[j]; argv1[i+j]=to_replace[j];
} }
} }