会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
张张hh
博客园
首页
新随笔
联系
订阅
管理
2019年12月30日
实验七
摘要: 二进制文件不能直接读写,文本文件可读写 二进制文件可以储存各种数据类型的变量,文本文件只能储存char类型的字符变量 part2 #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体
阅读全文
posted @ 2019-12-30 15:21 张张hh
阅读(80)
评论(3)
推荐(0)
2019年12月24日
实验六
摘要: part1 #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int s
阅读全文
posted @ 2019-12-24 01:01 张张hh
阅读(115)
评论(3)
推荐(0)
2019年12月17日
实验五
摘要: part1 选择:A B C D E F G // 练习:使用二分查找,在一组有序元素中查找数据项 // 形参是数组,实参是数组名 #include <stdio.h> #include <stdlib.h> const int N=5; int binarySearch(int x[], int
阅读全文
posted @ 2019-12-17 00:26 张张hh
阅读(125)
评论(3)
推荐(0)
2019年12月3日
实验四
摘要: //寻找两个整数之间的所有素数(包括这两个整数),把结果保存在数组bb中,函数返回素数的个数。 // 例如,输入6和21,则输出为:7 11 13 17 19。 #include <stdio.h> #include <stdlib.h> #define N 1000 int fun(int n,i
阅读全文
posted @ 2019-12-03 02:41 张张hh
阅读(195)
评论(3)
推荐(0)
2019年11月20日
实验三
摘要: /* 编程找出5个整数的最大数和最小数 《C语言程序设计教程学习指导》p122实验内容(3) */ #include <stdio.h> #include <stdlib.h> int main() { int number, max, min, n; n=1; printf("输入第%d个数: "
阅读全文
posted @ 2019-11-20 01:33 张张hh
阅读(194)
评论(3)
推荐(0)
2019年11月5日
实验二
摘要: part1总结:scanf需要输入&取址; %d以整形输出,%c以字符形式输出,%s以字符串形式输出,%f以浮点形式输出,%o以八进制形式输出 #include <stdio.h> int main() { double a,b,c; scanf("%lf %lf %lf", &a, &b, &c)
阅读全文
posted @ 2019-11-05 19:47 张张hh
阅读(136)
评论(3)
推荐(1)
2019年10月21日
实验一作业
摘要:
阅读全文
posted @ 2019-10-21 12:44 张张hh
阅读(71)
评论(0)
推荐(0)
公告