初学者思路,简单易懂 摘要:解题思路:从字符数组的两边往中间开始交换注意事项:参考代码: #include<stdio.h> #include<string.h> void fun(char*); int main()…… 题解列表 2024年12月29日 3 点赞 0 评论 431 浏览 评分:10.0
多余的string函数 摘要:解题思路:#include<stdio.h> #include<string.h> int main(void) { char a[100]; gets(a); i…… 题解列表 2024年12月28日 0 点赞 0 评论 195 浏览 评分:0.0
字符串反转C语言题解 摘要:解题思路:使用字符串函数strlen获得字符串长度注意事项:记得加上预处理命令#include<string.h>参考代码:#include<stdio.h>#include <string.h>in…… 题解列表 2024年12月25日 0 点赞 0 评论 453 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[100]; int i,j=0; scanf("%s",a); for(i…… 题解列表 2024年11月19日 0 点赞 0 评论 381 浏览 评分:0.0
大一新生用C语言编写的 摘要:解题思路:不知道为啥用scanf,printf就不行注意事项:参考代码:#include<stdio.h>#include<string.h>void fanh(char a[]);//函数的声明in…… 题解列表 2024年11月14日 1 点赞 0 评论 270 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[30]; scanf("%s",a); fo…… 题解列表 2024年09月21日 0 点赞 0 评论 156 浏览 评分:0.0
字符串与字符的应用 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[100]; for(int i=0;i<100;i…… 题解列表 2024年09月10日 0 点赞 0 评论 80 浏览 评分:0.0
使用fgets输入字符串然后实现反转 摘要:解题思路:可以定义一个数组循环输入,也可以定义一个数组然后使用字符串输入格式 "%s" 输入,还可以使用gets输入(gets不安全,尽量不用),这里使用fgets输入,fgets函数具有三个参数,第…… 题解列表 2024年07月22日 2 点赞 0 评论 146 浏览 评分:10.0
【编程入门】自定义函数之字符串反转 摘要:参考代码:#include<stdio.h>#include<string.h> int exchange(char a[],char b[]){ int i,l,j = 0; l = s…… 题解列表 2024年06月21日 0 点赞 0 评论 129 浏览 评分:9.9
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> #include<string.h> void count(char* str){ …… 题解列表 2024年06月11日 0 点赞 0 评论 144 浏览 评分:0.0