会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
王祎
博客园
首页
新随笔
联系
订阅
管理
2019年12月31日
实验7
摘要: #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-31 23:11 王祎
阅读(99)
评论(0)
推荐(0)
2019年12月24日
实验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-24 22:05 王祎
阅读(76)
评论(0)
推荐(0)
2019年12月17日
实验五
摘要: // 练习:使用二分查找,在一组有序元素中查找数据项 // 形参是数组,实参是数组名 #include <stdio.h> #include <stdlib.h> const int N=5; int binarySearch(int x[], int n, int item); // 函数声明 i
阅读全文
posted @ 2019-12-17 18:04 王祎
阅读(147)
评论(0)
推荐(0)
2019年12月3日
实验4
摘要: // 例如,输入6和21,则输出为:7 11 13 17 19。 #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
阅读全文
posted @ 2019-12-03 00:20 王祎
阅读(122)
评论(1)
推荐(0)
2019年11月18日
实验三
摘要: #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-18 23:43 王祎
阅读(108)
评论(1)
推荐(0)
2019年11月1日
实验二
摘要: part2 思考题 结论:可行 *
阅读全文
posted @ 2019-11-01 23:01 王祎
阅读(177)
评论(1)
推荐(0)
2019年10月22日
201983270562实验1
摘要: #include<stdio.h> int main() { printf("201983270562"); return 0; } #include<stdio.h> int main() { int x; printf("输入一个整数:\n"); scanf("%d,&x"); if(x%2==0) printf("是偶数"); else printf("是奇数"); return 0; }
阅读全文
posted @ 2019-10-22 00:08 王祎
阅读(93)
评论(0)
推荐(0)
公告