9_43.cc有误
SearchTheTruth opened this issue · comments
循环条件应该是
while (curr <= s.end() - oldVal.size())
否则无法处理如下字符
hello lo ll
确实有这个问题。
《C++ Primer》第五版中文版习题答案
SearchTheTruth opened this issue · comments
循环条件应该是
while (curr <= s.end() - oldVal.size())
否则无法处理如下字符
hello lo ll
确实有这个问题。