update
This commit is contained in:
parent
a61f0bd27c
commit
001bed5b1f
@ -26,7 +26,7 @@ int main(const int argc,const char *argv[]){
|
||||
if(be_replaced.size()!=to_replace.size()){
|
||||
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]){
|
||||
for(auto j: zt::Range(be_replaced.size())){
|
||||
if(argv1[i+j]!=be_replaced[j]){
|
||||
|
Loading…
Reference in New Issue
Block a user