【发布时间】:2020-10-30 04:37:58
【问题描述】:
感谢您点击我的问题。
经过无数小时的搜索,我还没有找到解决方案,而且很难搜索到您不知道如何在搜索中正确表达的内容。请帮帮我,我将不胜感激。
字符串的数据如下:
std::string keyword 1 "Hello";
std::string keyword 2 "Ola";
std::string test = Keyword1+Keyword2+keyword2;
我想要实现的伪代码示例:
if(test.contains(more then the 2 keywords))
我想确保字符串除了上面的关键字之外还有其他文本。
【问题讨论】:
-
不要标记
C。你的代码是 C++