先左到右遍历,再右到左,最后输出 摘要:```c #include #include int main(){ char s[110]; scanf("%s",s); int len=strlen(s); for(i…… 题解列表 2022年10月03日 0 点赞 0 评论 157 浏览 评分:0.0
1126-字符串正反连接 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>#include<algorithm> using namespace std;int main()…… 题解列表 2022年10月07日 0 点赞 0 评论 123 浏览 评分:0.0
敲简单C语言代码!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i; char a[200]; gets (a);…… 题解列表 2022年11月02日 0 点赞 0 评论 179 浏览 评分:0.0
暴力解法(凑字数。。。。。。。 摘要:解题思路:注意事项:参考代码:n=list(input())m=n.copy()n.reverse()c=m+nfor i in c: print(i,end='')…… 题解列表 2022年12月28日 0 点赞 0 评论 134 浏览 评分:0.0
1126: C语言训练-字符串正反连接 摘要:解题思路:解1;先反转字符串,再合并正反字符串,后输出(更严谨)。解2;先正着输出字符串,再反着输出字符串(简单暴力);注意事项:参考代码:代码1;#include<stdio.h>#include<…… 题解列表 2022年12月30日 0 点赞 0 评论 222 浏览 评分:0.0
字符串正反连接(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>char *fun(char str[]){ char* str1 = str; char* str…… 题解列表 2023年01月05日 0 点赞 0 评论 110 浏览 评分:0.0
编写题解 1126: C语言训练-字符串正反连接 正序打印和逆序打印 摘要:解题思路:注意事项:参考代码:#include <string.h> #include <stdio.h> int main(void) { char a[100]={0}; int …… 题解列表 2023年01月09日 0 点赞 0 评论 161 浏览 评分:0.0
递归逆序进行连接 摘要:f函数代表输出当前长度为n的字符串的最后一个字母,递归终止的条件是字符串长度为0为止,return结束函数 ```c #include #include void f(char *…… 题解列表 2023年03月30日 0 点赞 0 评论 168 浏览 评分:0.0
C语言训练-字符串正反连接 摘要:#include<stdio.h> int main() { char a[100]; char b[100]; scanf("%s",a); printf("%s",…… 题解列表 2023年06月11日 0 点赞 0 评论 102 浏览 评分:0.0
简单思路解答 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void fun(char a[],char b[]){ int i,len; // ge…… 题解列表 2023年08月15日 0 点赞 0 评论 114 浏览 评分:0.0