Cpp_Primer_Answers icon indicating copy to clipboard operation
Cpp_Primer_Answers copied to clipboard

exercise9_43.cpp和exercise9_44.cpp中有误,在oldVal是s的末尾的时候,无法替换

Open ghost opened this issue 4 years ago • 0 comments

exercise9_43.cpp和exercise9_44.cpp中有误,在oldVals的末尾的时候,无法替换。

  • exercise9_43.cpp中:第9行中的条件应该修改为curr != s.end()
  • exercise9_44.cpp中:第8行应该改为for (size_t pos = 0; pos <= s.size(); /* */)

ghost avatar Jul 21 '21 01:07 ghost