摘要:
#include <iostream> #include <string> #include <windows.h> using namespace std; int main() { string str; int i = 0; //访问字符数组的下标 int count = 0; cout << 阅读全文
posted @ 2022-08-15 18:04
wshidaboss
阅读(99)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <string> #include <windows.h>using namespace std; int main() { string line; int i = 0; //访问字符数组的下标 int count = 0; cout << 阅读全文
posted @ 2022-08-15 15:33
wshidaboss
阅读(824)
评论(0)
推荐(0)
摘要:
1.for循环实现字符串逆置 #include <iostream> using namespace std; int main() { string str; cout << "请输入一个字符串:" << endl; cin >> str; int j = str.length() - 1; // 阅读全文
posted @ 2022-08-15 00:10
wshidaboss
阅读(475)
评论(0)
推荐(0)
浙公网安备 33010602011771号