摘要:
任务三:屏幕上输出了分数从高到低的排序,同时生成了文本文件file3.dat 任务四:子任务1 屏幕上输出了按照分数从高到低的学生信息,生成了二进制文件file4.dat,不直观可读。 子任务2 #include <stdio.h> #include <stdlib.h> #define N 10 阅读全文
摘要:
#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 阅读全文
摘要:
#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 阅读全文
摘要:
#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 阅读全文