#include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; ...
分类:
其他好文 时间:
2019-12-23 22:47:28
阅读次数:
82
#include <stdio.h>#include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; } ...
分类:
其他好文 时间:
2019-12-23 13:16:07
阅读次数:
65
#include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; ...
分类:
其他好文 时间:
2019-12-23 11:45:33
阅读次数:
81
#include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; ...
分类:
其他好文 时间:
2019-12-23 00:25:09
阅读次数:
83
1.1 验证性内容 将数组大小N改为3后,测试内容及结果如下: 1.2 补足的程序段为: int findMinlist(STU s[], STU t[], int n) { int i,j,min,p; min=s[0].score; p=0; for(i=0;i<N-1;i++) { if(mi ...
分类:
其他好文 时间:
2019-12-22 22:51:21
阅读次数:
94
#include <stdio.h> #include <stdlib.h> const int N=5; typedef struct student { long no; char name[20]; int score; }STU; void input(STU s[], int n); in ...
分类:
其他好文 时间:
2019-12-22 20:22:29
阅读次数:
96
Redis 有序集合和集合一样也是string类型元素的集合,且不允许重复的成员。 不同的是每个元素都会关联一个double类型的分数。redis正是通过分数来为集合中的成员进行从小到大的排序。 有序集合的成员是唯一的,但分数(score)却可以重复。 集合是通过哈希表实现的,所以添加,删除,查找的 ...
分类:
其他好文 时间:
2019-12-22 18:19:02
阅读次数:
56
#include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; ...
分类:
其他好文 时间:
2019-12-22 18:01:24
阅读次数:
76
#include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; ...
分类:
其他好文 时间:
2019-12-22 18:01:09
阅读次数:
76
#include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; ...
分类:
其他好文 时间:
2019-12-22 16:09:10
阅读次数:
67