【发布时间】:2011-04-19 04:20:30
【问题描述】:
下面这段代码中的std::string::npos是什么意思?
found = str.find(str2);
if (found != std::string::npos)
std::cout << "first 'needle' found at: " << int(found) << std::endl;
【问题讨论】:
标签: c++ stdstring c++-standard-library