This commit is contained in:
Zengtudor 2024-09-17 21:27:03 +08:00
parent a61f0bd27c
commit 001bed5b1f
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ int main(const int argc,const char *argv[]){
if(be_replaced.size()!=to_replace.size()){ if(be_replaced.size()!=to_replace.size()){
throw std::runtime_error("The length of last two characters are not same!\n"); throw std::runtime_error("The length of last two characters are not same!\n");
} }
for(auto i: zt::Range((size_t)0,argv1.size())){ for(auto i: zt::Range(argv1.size())){
if(argv1[i]==be_replaced[0]){ if(argv1[i]==be_replaced[0]){
for(auto j: zt::Range(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]){