这里就放一下运行之后的文件变化。具体内部截图就不放了。 #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef s ...
分类:
其他好文 时间:
2019-12-31 23:45:37
阅读次数:
74
#include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; ...
分类:
其他好文 时间:
2019-12-31 23:39:32
阅读次数:
60
Part 1 // 从文本文件file1.dat中读取数据,找出最高分和最低分学生信息,并输出在屏幕上 #include <stdio.h> #include <stdlib.h> #define N 10 // 定义一个结构体类型STU typedef struct student { int n ...
分类:
其他好文 时间:
2019-12-31 23:18:28
阅读次数:
69
验证性实验二任然正确 #include <stdio.h> #include <stdlib.h> #define N 10 // 定义一个结构体类型STU typedef struct student { int num; char name[20]; int score; }STU; int m ...
分类:
其他好文 时间:
2019-12-31 23:13:27
阅读次数:
96
#include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; ...
分类:
其他好文 时间:
2019-12-31 21:49:14
阅读次数:
55
part 1 正确 part 2 正确,结果如下: 文本文件可以,二进制文件不行 #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为 ...
分类:
其他好文 时间:
2019-12-31 14:39:59
阅读次数:
50
#include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; ...
分类:
其他好文 时间:
2019-12-31 14:26:21
阅读次数:
59
#include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; ...
分类:
其他好文 时间:
2019-12-31 01:38:21
阅读次数:
79
#include <stdlib.h>#include <string.h>const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; char name[20]; float ...
分类:
其他好文 时间:
2019-12-29 23:22:09
阅读次数:
100
#include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; ...
分类:
其他好文 时间:
2019-12-29 18:40:06
阅读次数:
53