摘要:
实验3 屏幕上正确输出了按分数由高到低排序的信息,生成了文本文件file3.dat File3.dat里面的数据信息正确,且直观可读 实验4 子任务1:屏幕上正确输出了按分数由高到低排序的学生信息。生成了二进制文件file4,里面的数据不直观可读 子任务2: #include<stdio.h> #i 阅读全文
摘要:
实验1#include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 typedef struct student { int id; /*学生学号 */ char name[20]; /*学生姓名 */ char subjec 阅读全文
摘要:
实验1 #include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名及下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", & 阅读全文