会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
liffee
博客园
首页
新随笔
联系
订阅
管理
2019年12月27日
标题七
摘要: #include <stdio.h> #include <stdlib.h> #define N 10 typedef struct student { int num; char name[20]; int score; }STU; int main() { STU st, stmax, stmi
阅读全文
posted @ 2019-12-27 20:43 liffee
阅读(132)
评论(3)
推荐(0)
2019年12月22日
实验六
摘要: #include <stdio.h> #include <stdlib.h> const int N=5; typedef struct student { long no; char name[20]; int score; }STU; void input(STU s[], int n); in
阅读全文
posted @ 2019-12-22 19:48 liffee
阅读(96)
评论(3)
推荐(1)
2019年12月16日
实验五
摘要: // 练习:使用二分查找,在一组有序元素中查找数据项 // 形参是数组,实参是数组名 #include <stdio.h> #include <stdlib.h> const int N=5; int binarySearch(int x[], int n, int item); // 函数声明 i
阅读全文
posted @ 2019-12-16 20:06 liffee
阅读(123)
评论(3)
推荐(0)
2019年12月2日
实验四
摘要: #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-12-02 11:33 liffee
阅读(117)
评论(2)
推荐(0)
2019年11月19日
实验三
摘要: #include <stdio.h> #include <stdlib.h> int main() { int number, max, min, n; n=1; printf("输入第%d个数: ", n); scanf("%d", &number); max = number; min = nu
阅读全文
posted @ 2019-11-19 12:28 liffee
阅读(125)
评论(1)
推荐(0)
2019年11月5日
实验二
摘要: #include <stdio.h> int main() { int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="Hello, world!"; // 定义一个数组a,数组中连续存放了字符串常量hello,world! int y=3, z=4; printf("%d %d\n", y, z); printf
阅读全文
posted @ 2019-11-05 09:34 liffee
阅读(123)
评论(1)
推荐(0)
2019年10月21日
实验一
摘要:
阅读全文
posted @ 2019-10-21 21:55 liffee
阅读(64)
评论(0)
推荐(0)
公告