1206: 字符串问题 摘要:这题就是字符串逆序,使用 reverse 函数。#include<bits/stdc++.h> using namespace std; int main(){ string s; …… 题解列表 2021年12月23日 0 点赞 0 评论 259 浏览 评分:0.0
字符串问题(极简) 摘要:解题思路:极简注意事项:参考代码:#include<iostream>usingnamespacestd;intmain(){ string…… 题解列表 2025年02月03日 0 点赞 0 评论 345 浏览 评分:0.0
菜鸡写法,分情况就ok 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<string>#include<cstring>#include<algorithm>#include<cmath…… 题解列表 2023年12月24日 0 点赞 0 评论 324 浏览 评分:0.0
编写题解 1206: 字符串问题 摘要:##编写题解 1206: 字符串问题 ```cpp #include using namespace std; int main() { string s; cin>>s; fo…… 题解列表 2023年02月04日 0 点赞 0 评论 193 浏览 评分:0.0
编写题解 1206: 字符串问题(最短) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string a;//定义 cin>>a;//输出 …… 题解列表 2022年11月04日 0 点赞 0 评论 244 浏览 评分:0.0
编写题解 1206: 字符串问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string str; c…… 题解列表 2022年03月31日 0 点赞 0 评论 188 浏览 评分:0.0
1126:C语言训练-字符串正反连接题解 摘要:解题思路:此题是字符串中比较简单的一题了。我们用一个循环输入字符串,再用一个循环倒序输出一下。则循环参数从字符串的长度-1开始,到0结束,因为字符串的下标从0开始。然后每次循环参数-1,每次输出字符串…… 题解列表 2022年03月29日 0 点赞 0 评论 255 浏览 评分:0.0
Hifipsysta-1206-字符串问题(C++代码) 摘要:```cpp #include #include #include using namespace std; int main() { string mystr; …… 题解列表 2022年02月12日 0 点赞 0 评论 184 浏览 评分:0.0
字符串问题 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> using namespace std; int main() { char a[3…… 题解列表 2018年05月17日 0 点赞 0 评论 777 浏览 评分:0.0
编写题解 1206: 字符串问题(c++) 摘要:解题思路:相同的字符串进行逆转,用两个不同的变量i,j标记,i记录串尾位置,j记录串头位置,用个for循环就好参考代码: #include <iostream>#inclu…… 题解列表 2021年08月19日 0 点赞 0 评论 283 浏览 评分:0.0