编写题解 1044: [编程入门]三个字符串的排序
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int compare(const voi……
1044题 : 三个字符串的排序
摘要:# 自己写的代码(没有写完,代码不好)
```c
#include
#include
int main()
{
char a[20],b[20],c[20];
get……
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……