题解 1044: [编程入门]三个字符串的排序

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

三个字符串的排序

摘要:解题思路:注意事项:参考代码:#include <iostream>#include<cstdio>#include<cstring>using namespace std;//自定义函数,实现比较a……

冒泡排序思想,直接比较大小

摘要:解题思路:使用冒泡排序思想,直接用strcmp()函数比较字符串大小即可参考代码:#include<stdio.h> #include<string.h> int main(){ char a……

字符串排序

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,j,a[3][100],t[100]; for(i=0;i<3;……

无聊的星期六

摘要:z = [str(x) for x in [input() for _ in range(3)]] z.sort() print(&#39;\n&#39;.join(map(str, z)))……

傻瓜式解决方法

摘要:#include #include //(类比依次输出数字的大小,采用中间变量进行排序) int main() { char str1[100], str2[100], str3[……

c++的compare就是c的strcmp

摘要:#include<bits/stdc++.h> using namespace std; int main() {     string s[3];     cin>>s[0]>>s[1]>……