1044:字符串排序 摘要:解题思路:使用冒泡排序注意事项:由于输入为字符串,因此采用char字符,同时无法直接使用比较符号,因此引入string函数,在比较上采用string compare参考代码:#include"…… 题解列表 2025年11月25日 0 点赞 0 评论 173 浏览 评分:10.0
[编程入门]三个字符串的排序 摘要:解题思路:注意事项:如果使用strcmp感觉只能用冒泡排序了,初始化字符串时可以用一维的字符串指针数组储存,用二维字符串数组也行。参考代码:#include <stdio.h>#inclu…… 题解列表 2025年11月04日 1 点赞 0 评论 200 浏览 评分:10.0
C比较三个字符串字符数组长度(结合冒泡排序) 摘要:#include<stdio.h>#include<string.h>int main(){ char arr[3][1000]; &nb…… 题解列表 2025年10月06日 0 点赞 0 评论 204 浏览 评分:0.0
代码要求基础,新手就能懂 摘要:解题思路:自己看注意事项:没有参考代码:#include<stdio.h>#include<string.h>int main(){ int i; char str[3][10…… 题解列表 2025年06月17日 2 点赞 1 评论 531 浏览 评分:10.0
字符串排序用库函数strcmp 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#define N 100int main(){ c…… 题解列表 2025年03月18日 1 点赞 0 评论 735 浏览 评分:0.0
选择排序的大材小用(不要学我) 摘要:#include<stdio.h> #include<string.h> int main(void) { char a[3][100], temp[100]; int fl…… 题解列表 2024年12月28日 0 点赞 0 评论 570 浏览 评分:0.0
字符串的排序,纯傻瓜做法 摘要:解题思路:使用到strcmp函数比较字典数,三个字符串数量有限,完全可以列出所有可能的排列可能方式,按顺序依次比较三个字符串注意事项:puts函数自动换行参考代码://================…… 题解列表 2024年12月20日 0 点赞 0 评论 733 浏览 评分:0.0
1044 : 三个字符串的排序 摘要:#include <stdio.h> #include <string.h> int main() { char a[1000],b[1000],c[1000]; …… 题解列表 2024年12月15日 1 点赞 0 评论 985 浏览 评分:0.0
关键词:指针、数组和函数之间地址的传递 摘要:参考代码:#include <stdio.h> #include <math.h> #include <string.h> void sort(char **p,int n) //用于排序的…… 题解列表 2024年11月20日 1 点赞 0 评论 411 浏览 评分:0.0
1044: [编程入门]三个字符串的排序(详细解答) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main() { char a[3][1000]; // 定义一个二维字符数组来存…… 题解列表 2024年11月09日 1 点赞 0 评论 578 浏览 评分:0.0