摘要:
#include <iostream> #include <string> #include <windows.h> using namespace std; int main() { string str; int i = 0; //访问字符数组的下标 int count = 0; cout << 阅读全文
摘要:
#include <iostream> #include <string> #include <windows.h>using namespace std; int main() { string line; int i = 0; //访问字符数组的下标 int count = 0; cout << 阅读全文
摘要:
1.for循环实现字符串逆置 #include <iostream> using namespace std; int main() { string str; cout << "请输入一个字符串:" << endl; cin >> str; int j = str.length() - 1; // 阅读全文