摘要: 实验任务三:在屏幕上输出了分数从高到低的信息;同时也生成了file3.dat;文件里的信息正确且可读; 实验任务四: 子任务1:生成了;生成了file4.dat;里面的数据不是直观且可读 子任务2: #include <stdio.h> #include <stdlib.h> #define N 1 阅读全文
posted @ 2020-12-30 23:44 嗷骜 阅读(24) 评论(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 per 阅读全文
posted @ 2020-12-22 16:26 嗷骜 阅读(53) 评论(2) 推荐(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", 阅读全文
posted @ 2020-12-17 23:32 嗷骜 阅读(43) 评论(1) 推荐(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("%1f% 阅读全文
posted @ 2020-12-01 11:13 嗷骜 阅读(53) 评论(1) 推荐(0) 编辑
摘要: 实验一: // #include <math.h> #include <stdio.h> int main(){ float a,b,c,x1,x2; float delta,real,imag; printf("enter a,b,c: "); while(scanf("%f%f%f",&a,&b 阅读全文
posted @ 2020-11-18 16:14 嗷骜 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 任务一: 除和乘,计算的先后顺序不同 任务二: 任务三: 任务四: 任务五: 任务六: // #include <stdio.h> #include <math.h> int main() { int n,s; char sum; printf("输入1到10的整数求等比数列前n项和:"); sca 阅读全文
posted @ 2020-10-31 17:53 嗷骜 阅读(42) 评论(1) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-10-18 12:50 嗷骜 阅读(35) 评论(0) 推荐(0) 编辑