会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Erii(
博客园
首页
新随笔
联系
订阅
管理
随笔 - 7
文章 - 0
评论 - 6
阅读 -
1126
2019年12月29日
clearlove7777777
摘要: // 从文本文件file1.dat中读取数据,找出最高分和最低分学生信息,并输出在屏幕上 #include <stdio.h> #include <stdlib.h> #define N 10 // 定义一个结构体类型STU typedef struct student { int num; cha
阅读全文
posted @ 2019-12-29 17:56 Erii(
阅读(237)
评论(1)
推荐(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 22:59 Erii(
阅读(151)
评论(1)
推荐(0)
2019年12月17日
实验5555
摘要: PART 1 A B C D E F G PART 2 // 练习:使用二分查找,在一组有序元素中查找数据项 // 形参是数组,实参是数组名 #include <stdio.h> #include <stdlib.h> const int N=5; int binarySearch(int x[],
阅读全文
posted @ 2019-12-17 22:49 Erii(
阅读(184)
评论(1)
推荐(0)
2019年12月3日
实验4呐
摘要: #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/*补足1*/; for(i=2;i<
阅读全文
posted @ 2019-12-03 22:19 Erii(
阅读(147)
评论(1)
推荐(0)
2019年11月19日
实验33333333
摘要: #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 23:26 Erii(
阅读(171)
评论(1)
推荐(0)
2019年11月5日
实验2嗷
摘要: #include <stdio.h> int main() { int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="Hello, world!"; int y=3, z=4; printf("%d %d\n",
阅读全文
posted @ 2019-11-05 21:06 Erii(
阅读(139)
评论(1)
推荐(0)
2019年10月22日
实验1嗷
摘要: #include <stdio.h> int main(){ int x; printf("输入一个整数:\n"); scanf("%d",&x); if(x%2==1) printf("是奇数"); else printf("是偶数"); return 0; } #include <stdio.h> int main(){ int days; printf("输入一个整数:\n"); scanf
阅读全文
posted @ 2019-10-22 22:32 Erii(
阅读(97)
评论(0)
推荐(0)
公告
点击右上角即可分享