huangmingchuan / Cpp_Primer_Answers

《C++ Primer》第五版中文版习题答案

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

9_43.cc有误

SearchTheTruth opened this issue · comments

循环条件应该是
while (curr <= s.end() - oldVal.size())
否则无法处理如下字符
hello lo ll

commented

确实有这个问题。