spring
「已注销」
这个作者很懒,什么都没留下…
展开
-
C++字符串匹配,如输入字符串字串在abcdefghi中找其字串是否存在,存在则返回字符串字串首字符的位置
#include<iostream> #include<string> using namespace std; int main() { int count1 = 0; int count2 = 0; int i = 0; int action = 0; string str("abcdefghi"); cout << str << endl; cout <<"请输入字符字串:"&.原创 2021-09-06 10:19:44 · 298 阅读 · 0 评论 -
用C++将i am from shanghai 逆序字符串位置变成 shanghai from am i
#include<iostream> #include<string> using namespace std; int main() { int count = 0; int i; string str("i am from shanghai "); string str1; cout << str << endl; /* while(str[count] != '\0') { ...原创 2021-09-06 10:09:16 · 70 阅读 · 0 评论