I-AM-Y

导航

2020年12月29日 #

第七次实验

摘要: 任务3 屏幕输出正确按照分数降序排序的信息,在当前路径下,同时生成了file3.dat 数据正确且直观 任务4 子任务1) 屏幕上输出了正确的按照分数由高到低排序的学生信息,同时在当前路径下生成二进制文件file4.dat,里面的数据不直观可读 子任务2) #include <stdio.h> #i 阅读全文

posted @ 2020-12-29 16:56 I-AM-Y 阅读(158) 评论(2) 推荐(0) 编辑

2020年12月23日 #

实验6 结构体

摘要: 任务1 #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 5 typedef struct student { int id; char name[20]; char subject[20]; float perf; 阅读全文

posted @ 2020-12-23 16:34 I-AM-Y 阅读(59) 评论(6) 推荐(0) 编辑

2020年12月17日 #

第五次实验 数组和指针

摘要: 任务1 #include <stdio.h> const int N=3; int main() { int a[]={1,2,3}; int i; printf("通过数组名以及下标直接访问数组元素:\n"); for (i=0;i<N;i++) printf("%d: %D\n",&a[i],a 阅读全文

posted @ 2020-12-17 14:47 I-AM-Y 阅读(71) 评论(5) 推荐(0) 编辑

2020年12月6日 #

第四次实验

摘要: 任务1 #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 阅读全文

posted @ 2020-12-06 15:42 I-AM-Y 阅读(75) 评论(5) 推荐(0) 编辑

2020年11月18日 #

第三次实验

摘要: //重复执行,直到按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: "); while (sc 阅读全文

posted @ 2020-11-18 00:00 I-AM-Y 阅读(153) 评论(3) 推荐(0) 编辑

2020年11月5日 #

实验2

摘要: 任务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; //d=0 e = a*c / b;//e=71 f = c / b*a; 阅读全文

posted @ 2020-11-05 12:22 I-AM-Y 阅读(129) 评论(3) 推荐(0) 编辑

2020年10月17日 #

第一次实验

摘要: /*A simple C program*/ #include <stdio.h> int main(){ printf("202023332333\n"); printf("2020,I am crazy,what about you?\n"); return 0; } 一个很基础的程序。包含了最 阅读全文

posted @ 2020-10-17 15:50 I-AM-Y 阅读(78) 评论(0) 推荐(0) 编辑