1126: C语言训练-字符串正反连接(c语言5种解法) 摘要:解题思路: 反转加追加注意事项: 个人推荐解法3,简单易懂参考代码://1、流氓输出: #include<stdio.h> #include<string.h> int main() { …… 题解列表 2022年03月06日 0 点赞 0 评论 1065 浏览 评分:9.9
[Sapphire]1126:字符串正反连接(C语言代码) 摘要:解题思路:用新数组接收反转过后的原数组元素即可。注意事项:1.用joe[k]='\0'结束。参考代码:#include<stdio.h> #include<string.h> in…… 题解列表 2022年02月16日 0 点赞 0 评论 271 浏览 评分:9.9
Hifipsysta-1126题-字符串正反连接(C++代码)善用字符串加法 摘要: ```cpp #include #include #include using namespace std; int main() { string str1,str2=…… 题解列表 2022年01月26日 0 点赞 0 评论 180 浏览 评分:0.0
使用reverse求解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ string str; cin>>str; cout<<s…… 题解列表 2022年01月22日 0 点赞 0 评论 228 浏览 评分:0.0
1126: C语言训练-字符串正反连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>char a[50],b[50];int i,j;void fun1(char a[]){ j…… 题解列表 2022年01月19日 0 点赞 0 评论 102 浏览 评分:0.0
1126: C语言训练-字符串正反连接 摘要:解题思路:将字符逆序放到另一个数组内,然后拼接两个数组当然,也可以逆序的放在同一个数组内,如方法二参考代码:#include <stdio.h> #include <stdlib.h> #incl…… 题解列表 2021年12月27日 0 点赞 0 评论 530 浏览 评分:9.9
1126: C语言训练-字符串正反连接 摘要:使用 reverse 函数将字符串反序。#include<bits/stdc++.h> using namespace std; int main(){ string s,temp;…… 题解列表 2021年12月23日 0 点赞 0 评论 250 浏览 评分:0.0
运用函数解决问题 摘要:解题思路:调用reverse函数在进行相加注意事项:建议了解字符串相关的函数参考代码#include <iostream>#include <string>#include <algorithm>us…… 题解列表 2021年11月18日 0 点赞 0 评论 177 浏览 评分:0.0
algorithm库是真好用 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>#include <string>using namespace std;int main(…… 题解列表 2021年10月31日 0 点赞 0 评论 282 浏览 评分:0.0
1126: C语言训练-字符串正反连接-题解(python) 摘要:解题思路:字符串切片的使用注意事项:参考代码:a = input()b = a[::-1]c = a+bprint(c)…… 题解列表 2021年10月22日 0 点赞 0 评论 419 浏览 评分:9.9