12 2020 档案

摘要:任务三:屏幕上输出了分数从高到低的排序,同时生成了文本文件file3.dat 任务四:子任务1 屏幕上输出了按照分数从高到低的学生信息,生成了二进制文件file4.dat,不直观可读。 子任务2 #include <stdio.h> #include <stdlib.h> #define N 10 阅读全文
posted @ 2020-12-31 23:00 来瓶纯牛奶 阅读(78) 评论(1) 推荐(0)
摘要:#include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 typedef struct student{ int id; char name[20]; char subject[20]; float perf; float 阅读全文
posted @ 2020-12-24 23:26 来瓶纯牛奶 阅读(74) 评论(1) 推荐(0)
摘要:#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",&a[i],a[i]); pr 阅读全文
posted @ 2020-12-17 23:26 来瓶纯牛奶 阅读(57) 评论(2) 推荐(0)
摘要:#include<math.h> #include<stdio.h> void solve(double a,double b,double c); int main(){ double a,b,c; printf("Enter a,b,c"); while(scanf("%lf%lf%lf",&a 阅读全文
posted @ 2020-12-03 20:09 来瓶纯牛奶 阅读(114) 评论(3) 推荐(0)