简单易懂,两个函数给出答案 摘要:解题思路:先用compare函数对比出三个字符串的大小,再用compute函数排出次序。注意事项:1. compare函数返回的是一个数组指针,所以必须将其声明为一个指针函数。参考代码:#includ…… 题解列表 2022年11月24日 0 点赞 0 评论 265 浏览 评分:0.0
通过比较和复制字符串解决(C语言) 摘要:解题思路:通过strcmp()函数确认字符串大小(该函数大于返回1,等于返回0,小于返回-1),再通过strcpy()复制并交换字符串,gets()输入字符串,puts()输出字符串注意事项:字符串不…… 题解列表 2023年01月03日 0 点赞 0 评论 271 浏览 评分:0.0
三个字符串的排序 摘要:参考代码 #include #include #include #define n 100 int main(void) { c…… 题解列表 2023年01月08日 0 点赞 0 评论 298 浏览 评分:0.0
选择排序思想解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<windows.h>int main(){ int l,m,min; …… 题解列表 2023年01月12日 0 点赞 0 评论 281 浏览 评分:0.0
使用选择法排序字符串 摘要:```c #include #include int main() { char a[3][100]; for(int i=0;i…… 题解列表 2023年02月02日 0 点赞 0 评论 340 浏览 评分:0.0
直接当成数字来比较都可行 摘要:```cpp #include using namespace std; int main() { string a,b,c; cin>>a>>b>>c; if(ac) cout…… 题解列表 2023年03月02日 0 点赞 0 评论 356 浏览 评分:0.0
[编程入门]三个字符串的排序-JAVA题解 摘要: import java.util.Scanner; public class Main { public static void main(Str…… 题解列表 2023年03月05日 0 点赞 0 评论 348 浏览 评分:0.0
编写题解 1044: [编程入门]三个字符串的排序 摘要:```c #include #include #include #include int main() { char a[3][128];//每一行存一串字符串 cha…… 题解列表 2023年03月08日 0 点赞 0 评论 339 浏览 评分:0.0
简单明了,通俗易懂 摘要:解题思路:无脑莽注意事项:代码有点多参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]={0};char b[100]={0…… 题解列表 2023年03月17日 0 点赞 0 评论 220 浏览 评分:0.0
编写题解 1044: [编程入门]三个字符串的排序 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #include <string.h> int compare(const voi…… 题解列表 2023年04月07日 0 点赞 0 评论 260 浏览 评分:0.0