会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Yuchih
2020年1月1日
实验7
摘要: part 1 正常运行 file3有210字节,file4有280字节,为什么不是二进制文件小一点 #include <stdio.h> #include <stdlib.h> #define N 10 // 定义一个结构体类型STU typedef struct student { int num
阅读全文
posted @ 2020-01-01 09:55 Yuchih
阅读(102)
评论(7)
推荐(0)
2019年12月23日
实验6
摘要: #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score;
阅读全文
posted @ 2019-12-23 23:00 Yuchih
阅读(112)
评论(6)
推荐(0)
2019年12月18日
实验5
摘要: 现在已经完成了!! part 1 AEF part2 1 // 练习:使用二分查找,在一组有序元素中查找数据项 // 形参是数组,实参是数组名 #include <stdio.h> #include <stdlib.h> const int N=5; int binarySearch(int x[]
阅读全文
posted @ 2019-12-18 07:27 Yuchih
阅读(114)
评论(3)
推荐(0)
2019年12月3日
实验4
摘要: 1 //寻找两个整数之间的所有素数(包括这两个整数),把结果保存在数组bb中,函数返回素数的个数。 // 例如,输入6和21,则输出为:7 11 13 17 19。 #include <stdio.h> #include <stdlib.h> #define N 1000 int fun(int n
阅读全文
posted @ 2019-12-03 09:10 Yuchih
阅读(105)
评论(2)
推荐(0)
2019年11月20日
实验3
摘要: part 2 #include <stdio.h> #include <stdlib.h> int main() { int number, max, min, n; n=1; printf("输入第%d个数: ", n); scanf("%d", &number); max = number; m
阅读全文
posted @ 2019-11-20 01:53 Yuchih
阅读(128)
评论(3)
推荐(0)
2019年11月6日
实验2
摘要: part1 第三行8d,x有四位,预宽四格,2小于4,2d按原样输出第三行f先转换成二进制,小数位乘2得不到1,换成浮点型时数据错误第七行及以后是字符串,小数点后为实际输出位,小数点前为宽度 #include <stdio.h> int main() { double x,y; char c1,c2
阅读全文
posted @ 2019-11-06 02:09 Yuchih
阅读(115)
评论(7)
推荐(0)
2019年10月21日
实验
摘要: #include int main() { int x; printf("输入:\n"); scanf("%d,&x"); if(x%2==0) printf("偶数"); else printf("奇数"); return 0; } #include int main() { int days; printf("input:\n"); scanf...
阅读全文
posted @ 2019-10-21 23:53 Yuchih
阅读(122)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告