摘要: 任务三 是的 是的 是的 任务四 子任务一 是的 是的 不可直接读 子任务二 直接在任务一的原基础上增加 fin2=fopen("dile4.dat","rb"); fread(st,sizeof(STU),N,fin2); for(i=0; i<N; i++) printf("%-6d%-10s% 阅读全文
posted @ 2020-12-31 13:29 x年轻 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 任务一 #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 2 // 运行程序输入测试时,可以把N改小一些输入测试 typedef struct student { int id; /*学生学号 */ char name 阅读全文
posted @ 2020-12-24 13:06 x年轻 阅读(58) 评论(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 13:04 x年轻 阅读(23) 评论(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("%l 阅读全文
posted @ 2020-12-02 23:47 x年轻 阅读(45) 评论(2) 推荐(0) 编辑
摘要: 任务一 #include<stdio.h> #include<math.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,&c)! 阅读全文
posted @ 2020-11-18 23:59 x年轻 阅读(38) 评论(2) 推荐(0) 编辑
摘要: 任务一 #include<stdio.h> int main(){ int a=5,b=7,c=100,d,e,f; d=a/b*c; e=a*c/b; f=c/b*a; printf("d=%d,e=%d,f=%d/n",d,e,f); return 0; } 任务二 #include<stdio 阅读全文
posted @ 2020-11-04 23:39 x年轻 阅读(55) 评论(2) 推荐(0) 编辑
摘要: 实验一 #include <stdio.h> int main(int argc, char** argv) { printf("my stuno is 202083290262\n 2020,please give me five"); return 0; } 实验二 #include <stdi 阅读全文
posted @ 2020-10-20 16:21 x年轻 阅读(99) 评论(0) 推荐(0) 编辑