2021年1月1日

实验7 文件 <结束>

摘要: 实验1、2 运行正常。 实验任务3 在屏幕上输出排序的信息正确,在当前路径下生成file3.dat,用记事本打开直观可读。 实验任务4 子任务1: 在屏幕上正确输出排序的信息,并在当前路径下生成了二进制文件file4.dat,用记事本打开不可直观读取,名字是乱码。 子任务2: #include<st 阅读全文

posted @ 2021-01-01 15:18 helianthus-JUN 阅读(76) 评论(2) 推荐(0) 编辑

2020年12月29日

实验2与实验3(T-T)

摘要: 实验2 实验任务一 //ex1.cpp #include <stdio.h> #include<stdlib.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=% 阅读全文

posted @ 2020-12-29 20:07 helianthus-JUN 阅读(107) 评论(0) 推荐(0) 编辑

2020年12月24日

TASK666:| 结构体

摘要: task1: // 打印不及格学生信息和所有学生信息程分别调用 #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 2 // 减小N可测试 typedef struct student { int id; //学号 ch 阅读全文

posted @ 2020-12-24 18:15 helianthus-JUN 阅读(69) 评论(2) 推荐(0) 编辑

2020年12月18日

实验五 数组与指针:)

摘要: 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 12:18 helianthus-JUN 阅读(113) 评论(2) 推荐(0) 编辑

2020年12月6日

实验4~函数与数组

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

posted @ 2020-12-06 11:37 helianthus-JUN 阅读(100) 评论(0) 推荐(0) 编辑

2020年11月20日

实验三

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

posted @ 2020-11-20 11:38 helianthus-JUN 阅读(136) 评论(0) 推荐(0) 编辑

2020年11月5日

实验二 C语言表达式编程应用及输入输出函数

摘要: 实验任务1 //ex1.cpp #include <stdio.h> #include<stdlib.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 阅读全文

posted @ 2020-11-05 19:50 helianthus-JUN 阅读(187) 评论(1) 推荐(0) 编辑

2020年10月18日

实验1 C语言开发环境使用和数据类型,运算符,表达式

摘要: #include<stdio.h> int main() { printf("202083450085,\n"); printf("时间会带来惊喜!"); return 0; } 实验1 实验2 将01改为加油 /* 循环打印字符 */ #include <stdio.h> int main() { 阅读全文

posted @ 2020-10-18 20:04 helianthus-JUN 阅读(56) 评论(0) 推荐(0) 编辑

导航