c代码记录之三个字符串排序
摘要:题目没说每行字符串的上限长度,直接char a[1000]或a[10000]感觉都不太严谨,就用了动态数组,比较冗长
#include
#include
#include
……
不是最优解,strcmp的那个方法好
摘要:```c
#include
#include
int judge(char *s1,char*s2)
{
for(int i=0;i……
暴力求解———C语言
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char a[3][30],b[30],c[30]; int i; fo……
三个字符串排序(二维数组+选择排序)
摘要:```c
#define _CRT_SECURE_NO_WARNINGS
#include
#include
int main()
{
char str[3][128] = { 0 ……
冒泡排序思想,直接比较大小
摘要:解题思路:使用冒泡排序思想,直接用strcmp()函数比较字符串大小即可参考代码:#include<stdio.h>
#include<string.h>
int main(){
char a……
小白随便写的,记录一下
摘要:```python
a = input()
b = input()
c = input()
word = [a, b, c]
word.sort()
# sort函数可以对数字排序 也……