2020年1月1日

摘要: 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日

摘要: #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日

摘要: 现在已经完成了!! 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日

摘要: 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日

摘要: 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日

摘要: 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)

导航