题解 1126: C语言训练-字符串正反连接

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

运用函数解决问题

摘要:解题思路:调用reverse函数在进行相加注意事项:建议了解字符串相关的函数参考代码#include <iostream>#include <string>#include <algorithm>us……

使用reverse求解

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ string str; cin>>str; cout<<s……

纯新手,来看看呀QAQ

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    int i,j,k;    char a[100],b[100];    gets(a);    for……

题解 1126: C语言训练-字符串正反连接(C语言)

#C语言:字符串正反连接##题目所给字符串正序和反序连接,形成新串并输出。##主要步骤-gets函数输入字符串,存入数组a中-将a的元素反序存入数组b中-strcat函数连接a,b数组输出即可##完整参考代码```c#include#includeintmain(void){chara[100];ch