Untitled
unknown
c_cpp
a year ago
321 B
13
Indexable
void print(int id, std::string::size_type n, std::string const& s)
{
std::cout << id << ") ";
if (std::string::npos == n)
std::cout << "not found! n == npos\n";
else
std::cout << "found @ n = " << n << ", substr(" << n << ") = "
<< std::quoted(s.substr(n)) << '\n';
}Editor is loading...
Leave a Comment