C语言训练-字符串正反连接-题解(C语言代码)(一维数组) 摘要:第一个是正确的,二三找不到问题,请大神指教 ```c #include #include int main(){ char str[110]; int i; sc…… 题解列表 2021年01月27日 0 点赞 0 评论 335 浏览 评分: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 评论 83 浏览 评分:0.0
编写题解 1126: C语言训练-字符串正反连接 摘要:解题思路:注意字符串结束符注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #include <string.h> int main() {…… 题解列表 2021年09月19日 0 点赞 0 评论 130 浏览 评分:0.0
字符串正反连接(C语言) 摘要:解题思路:先创建一个数组,用来储存输入字符串,再利用循环把字符串反着输出,把两个字符串连接到一个字符串中。注意事项:索引=字符串长度-1参考代码:#include<stdio.h>#include<s…… 题解列表 2021年09月12日 0 点赞 0 评论 169 浏览 评分:0.0
C语言训练-字符串正反连接解决方案 摘要:解题思路: 把a数组正反放到b数组内注意事项: 在b数组结尾处需加上‘\0’参考代码:int main(){ char a[100],b[200]; gets(a); int i…… 题解列表 2021年06月25日 0 点赞 0 评论 133 浏览 评分:0.0
使用for循环正向反向遍历 摘要:```c # include # include int main(void){ char a[50]; gets(a); for (int i=0;i=0;i--…… 题解列表 2021年06月07日 0 点赞 0 评论 642 浏览 评分:0.0
题解 1126: C语言训练-字符串正反连接 摘要:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>int main(){ char s[50]; char s1[101]…… 题解列表 2021年03月23日 0 点赞 0 评论 189 浏览 评分:0.0
字符串正反连接代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { char a[100]; int i,n; scanf("%s",&a); n=strl…… 题解列表 2021年03月19日 0 点赞 0 评论 121 浏览 评分:0.0
字符串正反连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100], b[100]; int j = 0; gets(a…… 题解列表 2021年02月25日 0 点赞 0 评论 115 浏览 评分:0.0
写题解 1126: C语言训练-字符串正反连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int m,i; char str[51]; gets(str); m=st…… 题解列表 2022年03月09日 0 点赞 0 评论 215 浏览 评分:0.0