2021年1月1日

摘要: 中午才发现自己没有提交....、 实验3 正确生成了排序的信息。 生成了file3.dat 打开之后里面数据正确、直观可读没有乱码。 实验4 #include <stdio.h> #include <stdlib.h> #define N 10 // 定义一个结构体类型STU typedef str 阅读全文
posted @ 2021-01-01 14:39 我是怎么考进来的 阅读(80) 评论(0) 推荐(0) 编辑

2020年12月26日

摘要: 第五次的作业错过了上交的日期.... 实验1 // P280例8.15 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 // 打印不及格学生信息和所有学生信息程分别调用 #include<stdio.h> #include<stdlib.h> #include<string.h 阅读全文
posted @ 2020-12-26 17:04 我是怎么考进来的 阅读(69) 评论(1) 推荐(0) 编辑

2020年12月20日

摘要: 实验1 #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-20 12:20 我是怎么考进来的 阅读(108) 评论(0) 推荐(0) 编辑

2020年12月6日

摘要: 实验一 一元二次方程的根,能否设计成以函数返回值的方式返回给主调函数? 虽然目前接触的函数只能用return返回一个值,但我觉得应该是可以的。程序员编程的时候不可能遇到一元二次方程就写一遍吧...... 实验二 // 利用局部static变量计算阶乘 #include <stdio.h> long 阅读全文
posted @ 2020-12-06 10:44 我是怎么考进来的 阅读(74) 评论(0) 推荐(0) 编辑

2020年11月11日

摘要: 实验1 // 一元二次方程求解 // 重复执行, 直到按Ctrl+Z结束 // #include <math.h> #include <stdio.h> int main() { float a, b, c, x1, x2; float delta, real, imag; printf("Ente 阅读全文
posted @ 2020-11-11 04:45 我是怎么考进来的 阅读(62) 评论(0) 推荐(0) 编辑

2020年11月4日

摘要: 实验任务1 // 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); re 阅读全文
posted @ 2020-11-04 20:01 我是怎么考进来的 阅读(95) 评论(0) 推荐(0) 编辑

2020年10月17日

摘要: 阅读全文
posted @ 2020-10-17 22:27 我是怎么考进来的 阅读(78) 评论(1) 推荐(0) 编辑