string的话可以用find函数#include#includeusingnamespacestd;intmain(){strings="goldenglobalview";stringr="new";if(s.find(r)<s.length()){cout<<"s中包含r"<评论05加载更多