![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
pQ561017_
做一只会抓老鼠的好猫!
展开
-
算法设计工具―STL
...原创 2018-08-05 17:01:20 · 958 阅读 · 0 评论 -
C++中string.find()函数与string::npos
查找字符串a是否包含子串b, 不是用strA.find(strB) > 0而是strA.find(strB) != string:npos string::size_type pos = strA.find(strB); if(pos != string::npos){} ------------------------------------------- int idx = str.fi...转载 2018-07-28 11:18:37 · 434 阅读 · 0 评论