摘要: string的find函数用好了真的很方便,就和set函数一样秒杀一些题! 1 void test8() 2 { 3 string s("dog bird chicken bird cat"); 4 5 //字符串查找 找到后返回首字母在字符串中的下标 6 7 // 1. 查找一个字符串 8 cou 阅读全文
posted @ 2022-03-20 14:09 wellerency 阅读(92) 评论(0) 推荐(0) 编辑