会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
浅*辰
博客园
首页
新随笔
联系
订阅
管理
2019年12月27日
实验七
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id;
阅读全文
posted @ 2019-12-27 21:10 浅*辰
阅读(99)
评论(3)
推荐(0)
2019年12月21日
实验六
摘要: #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-21 13:27 浅*辰
阅读(111)
评论(3)
推荐(0)
2019年12月15日
实验5
摘要: // 练习:使用二分查找,在一组有序元素中查找数据项 // 形参是数组,实参是数组名 #include <stdio.h> #include <stdlib.h> const int N=5; int binarySearch(int x[], int n, int item); // 函数声明 i
阅读全文
posted @ 2019-12-15 21:07 浅*辰
阅读(99)
评论(3)
推荐(0)
2019年11月29日
实验四
摘要: #include <stdio.h> #include <stdlib.h> #define N 1000 int fun(int n,int m,int bb[N]) { int i,j,k=0,flag; for(j=n;j<=m;j++) { flag=1; for(i=2;i<j;i++)
阅读全文
posted @ 2019-11-29 19:12 浅*辰
阅读(148)
评论(2)
推荐(0)
2019年11月15日
实验三
摘要: part2: #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-15 19:28 浅*辰
阅读(127)
评论(2)
推荐(0)
2019年11月2日
实验二
摘要: part1:ex2-1:第一行,第二行输出一致; 第三行字体宽度,表示占8为,不一致。 第四行:1.float型,因此小数点后6位 2.最小宽度为8,且为float型 3.最小宽度为8,且小数点后保留1位 4.小数点后保留2位 5.以指数形式输出 因此,这一行都不一致。 第五行:因为是float型,
阅读全文
posted @ 2019-11-02 15:11 浅*辰
阅读(119)
评论(3)
推荐(0)
2019年10月18日
实验1
摘要: PART1: 1分号会丢掉,会忘记打双引号。2在打代码的过程中,会忘记打逗号。3return 0后面的分号经 总结:可能是第一次,好多问题都暴露了出来。不过,在这次的作业过程中,也有所进步,在写最后一个时,基础性问题已经没有。
阅读全文
posted @ 2019-10-18 19:31 浅*辰
阅读(146)
评论(0)
推荐(0)
公告