博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2021年1月1日

摘要: 实验三 按要求输出了分数从高到低排序,生成了文本文件file3.dat 不直观可读 实验四 (1)正确输出了,能生成,但是不直观可读 (2) #include<stdio.h> #include<stdlib.h> #define N 10 typedef struct student{ int n 阅读全文

posted @ 2021-01-01 19:34 蜗牛吃蛋挞 阅读(45) 评论(3) 推荐(0) 编辑

2020年12月23日

摘要: #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 typedef struct student { int id; /*学生学号*/ char name[20]; /*学生姓名*/ char subject[20] 阅读全文

posted @ 2020-12-23 20:08 蜗牛吃蛋挞 阅读(53) 评论(2) 推荐(0) 编辑

2020年12月18日

摘要: 实验5 ex1 #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 阅读全文

posted @ 2020-12-18 14:12 蜗牛吃蛋挞 阅读(48) 评论(2) 推荐(0) 编辑

2020年12月6日

摘要: 实验一 //一元两次方程求解 //重复执行,直到按下ctrl+z结束 #include <stdio.h> #include<math.h> void solve(double a,double b,double c); int main() { double a,b,c; printf("Ente 阅读全文

posted @ 2020-12-06 17:36 蜗牛吃蛋挞 阅读(79) 评论(2) 推荐(0) 编辑

2020年11月18日

摘要: ex1 //一元一次方程求解 //重复执行,直到按ctrl+z结束 // #include<math.h> #include<stdio.h> int main(){ float a,b,c,x1,x2; float delta,real,imag; printf("Enter a,b,c: "); 阅读全文

posted @ 2020-11-18 19:33 蜗牛吃蛋挞 阅读(87) 评论(2) 推荐(0) 编辑

2020年11月4日

摘要: //ex1.cpp #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; } //ex2.cpp # 阅读全文

posted @ 2020-11-04 19:54 蜗牛吃蛋挞 阅读(46) 评论(2) 推荐(0) 编辑

2020年10月18日

摘要: include<stdio.h> int main(){ printf("202083450013,hellio2020"); return 0; } #include<stdio.h> int main() { while(0) printf("0 1"); return 0; } #includ 阅读全文

posted @ 2020-10-18 01:16 蜗牛吃蛋挞 阅读(73) 评论(0) 推荐(0) 编辑

2020年10月15日

摘要: #include<stdio.h>int main(){ printf("Hello Word"); return 0;} 阅读全文

posted @ 2020-10-15 19:43 蜗牛吃蛋挞 阅读(89) 评论(0) 推荐(0) 编辑