📜  在字符串 C++ 代码示例中查找子字符串

📅  最后修改于: 2022-03-11 14:44:57.978000             🧑  作者: Mango

代码示例1
std::string parentstring = "Hello Agnosticdev, I love Tutorials";
std::string substring = "Agnosticdev";
auto index = parentstring.find(substring);