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

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

筛选

algorithm库是真好用

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>#include <string>using namespace std;int main(……

字符串正反连接(C语言)

摘要:解题思路:先创建一个数组,用来储存输入字符串,再利用循环把字符串反着输出,把两个字符串连接到一个字符串中。注意事项:索引=字符串长度-1参考代码:#include<stdio.h>#include<s……

C语言训练-字符串正反连接解决方案

摘要:解题思路:  把a数组正反放到b数组内注意事项:  在b数组结尾处需加上‘\0’参考代码:int main(){    char a[100],b[200];    gets(a);    int i……

字符串的修改(摸鱼做法)

根据题意每个字符想变成另一个字符只需一步即可所以我们只需要找出两个字符串中相同的字符个数然后拿最大的长度减去他们即可```c#includeusingnamespacestd;intmain(){stringa,b;intji=0;cin>>a>>b;intl1=a.size();intl2=b.si

字符串正反连接 5行代码

importjava.util.Scanner;publicclass字符串正反连接{publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);Stringa=sc.nextLine();for(inti=a.length()