会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
znw-820
博客园
首页
新随笔
联系
订阅
管理
2024年12月30日
实验七
摘要: // 文件读写操作:格式化读、写文本文件 #include <stdio.h> #define N 80 #define M 100 typedef struct { char name[N]; // 书名 char author[N]; // 作者 } Book; void write(); vo
阅读全文
posted @ 2024-12-30 20:25 朱宁苇
阅读(8)
评论(0)
推荐(0)
2024年12月22日
实验六
摘要: #include <stdio.h> #include <string.h> #define N 2 typedef struct student { int id; char name[20]; char subject[20]; double perf; double mid; double f
阅读全文
posted @ 2024-12-22 21:07 朱宁苇
阅读(15)
评论(0)
推荐(0)
2024年12月8日
实验五
摘要: #include<stdio.h> #define N 5 void input(int x[],int n); void output(int x[],int n); void find_min_max(int x[],int n,int*pmin,int*pmax); int main(){ i
阅读全文
posted @ 2024-12-08 22:09 朱宁苇
阅读(12)
评论(0)
推荐(0)
2024年11月10日
实验四
摘要: #include<stdio.h> #define N 4 #define M 2 void test1(){ int x[N]={1,9,8,4}; int i; printf("sizeof(x)=%d\n",sizeof(x)); for(i=0;i<N;++i) printf("%p:%d\
阅读全文
posted @ 2024-11-10 22:54 朱宁苇
阅读(5)
评论(0)
推荐(0)
2024年10月27日
实验三
摘要: #include <stdio.h> char score_to_grade(int score); int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score_to_grade(scor
阅读全文
posted @ 2024-10-27 20:05 朱宁苇
阅读(27)
评论(0)
推荐(0)
2024年10月14日
实验2
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 397 #define N2 476 #define N3 21 int main() { int cnt; int random_majo
阅读全文
posted @ 2024-10-14 09:37 朱宁苇
阅读(21)
评论(0)
推荐(0)
2024年9月28日
实验一
摘要: 任务一 1.1源代码 #include<stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0; } task1_1.c #include<stdio.h> int main() { prin
阅读全文
posted @ 2024-09-28 22:32 朱宁苇
阅读(8)
评论(0)
推荐(0)
公告