Cpp_Primer_Answers
Cpp_Primer_Answers copied to clipboard
exercise9_43.cpp和exercise9_44.cpp中有误,在oldVal是s的末尾的时候,无法替换
exercise9_43.cpp和exercise9_44.cpp中有误,在oldVal是s的末尾的时候,无法替换。
- exercise9_43.cpp中:第9行中的条件应该修改为
curr != s.end(); - exercise9_44.cpp中:第8行应该改为
for (size_t pos = 0; pos <= s.size(); /* */)