会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
海科zhh
博客园
首页
新随笔
联系
订阅
管理
2021年1月1日
实验7
摘要: 实验三、 正确由高到低排序,生成了file3.dat,数据信息正确且可观 实验四、 1.正确分数由高到低排序,生成file4.dat,数据信息不直观可读 2. #include <stdio.h> #include <stdlib.h> #define N 10 typedef struct stu
阅读全文
posted @ 2021-01-01 11:20 海科zhh
阅读(57)
评论(1)
推荐(0)
2020年12月21日
实验六
摘要: 实验一 #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 typedef struct student { int id; char name[20]; char subject[20]; float perf;
阅读全文
posted @ 2020-12-21 22:35 海科zhh
阅读(65)
评论(2)
推荐(0)
2020年12月17日
实验5
摘要: 实验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\
阅读全文
posted @ 2020-12-17 21:13 海科zhh
阅读(51)
评论(2)
推荐(0)
2020年12月6日
实验四
摘要: 一、 一元二次方程的根可以设计成以函数返回值的方式返回给主调函数。 随时改变的值可以设置成参数。 二、 #include <stdio.h> long long fac(int n); int main() { int i,n; printf("Enter n: "); scanf("%d", &n
阅读全文
posted @ 2020-12-06 10:00 海科zhh
阅读(64)
评论(2)
推荐(0)
2020年11月19日
一顿操作猛如虎,一看头发。。。
摘要: #include <math.h> #include <stdio.h> int main() { float a, b, c, x1, x2; float delta, real, imag; printf("Enter a, b, c: "); while(scanf("%f%f%f", &a,
阅读全文
posted @ 2020-11-19 22:12 海科zhh
阅读(38)
评论(2)
推荐(0)
2020年11月5日
实验二
摘要: //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; } 从左到右运算顺序不同,%
阅读全文
posted @ 2020-11-05 23:28 海科zhh
阅读(70)
评论(2)
推荐(0)
2020年10月18日
实验一
摘要: 一 二 三 四
阅读全文
posted @ 2020-10-18 21:25 海科zhh
阅读(46)
评论(0)
推荐(0)
公告
点击右上角即可分享