- C++相談室 part113
208 :片山博文MZ悪魔崇拝 ◆T6xkBnTXz7B0 [sage]:2014/06/21(土) 19:18:44.93 ID:mJwMwh/H - str.find("ABC") != std::string::npos
|
- C++相談室 part113
211 :片山博文MZ悪魔崇拝 ◆T6xkBnTXz7B0 [sage]:2014/06/21(土) 20:33:45.80 ID:mJwMwh/H - std::size_t count_substrs(
const std::string& str, const std::string& substr) { std::size_t i = 0, count = 0; for (;;) { i = str.find(substr,i); if (i == std::string::npos) break; i += substr.size(); count++; } return count; }
|
- C++相談室 part113
215 :片山博文MZ悪魔崇拝 ◆T6xkBnTXz7B0 [sage]:2014/06/21(土) 22:25:20.81 ID:mJwMwh/H - assert(!substr.empty());
|
- 理論計算機科学
2 :デフォルトの名無しさん[sage]:2014/06/21(土) 23:36:19.79 ID:mJwMwh/H - アリエールでしょう
|