会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tzrblogs
博客园
首页
新随笔
联系
订阅
管理
2024年12月25日
实验七
摘要: task1: 源代码: // 文件读写操作:格式化读、写文本文件 #include <stdio.h> #define N 80 #define M 100 typedef struct { char name[N]; // 书名 char author[N]; // 作者 } Book; void
阅读全文
posted @ 2024-12-25 21:41 唐正瑞
阅读(30)
评论(0)
推荐(0)
2024年12月20日
实验六
摘要: task4: 源代码: #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; /
阅读全文
posted @ 2024-12-20 18:01 唐正瑞
阅读(6)
评论(0)
推荐(0)
2024年12月6日
实验5
摘要: task1_1: 源代码: #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
阅读全文
posted @ 2024-12-06 21:40 唐正瑞
阅读(11)
评论(0)
推荐(0)
2024年11月5日
实验四
摘要: task1: 源代码: #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = { 1, 9, 8, 4 }; int i; // 输出数组x占用的内存字节数 printf("sizeof(x) = %d\n", si
阅读全文
posted @ 2024-11-05 22:25 唐正瑞
阅读(17)
评论(0)
推荐(0)
2024年10月24日
实验3
摘要: task1: 源代码: 1 #include <stdio.h> 2 char score_to_grade(int score); // 函数声明 3 int main() { 4 int score; 5 char grade; 6 while (scanf_S("%d", &score) !=
阅读全文
posted @ 2024-10-24 14:18 唐正瑞
阅读(21)
评论(0)
推荐(0)
2024年10月9日
实验2
摘要: 任务1: 源代码: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 #define N1 397 7 #define N2 476 8 #define N3 21 9 10 int ma
阅读全文
posted @ 2024-10-09 19:00 唐正瑞
阅读(14)
评论(0)
推荐(0)
2024年9月26日
实验1
摘要: task1_1: 源代码: 1 #include <stdio.h> 2 int main() 3 { 4 5 int i=0; 6 while(i<=1){ 7 printf(" O \n"); 8 printf("<H>\n"); 9 printf("I I\n"); 10 i++; 11 };
阅读全文
posted @ 2024-09-26 22:33 唐正瑞
阅读(5)
评论(0)
推荐(0)
2024年9月24日
唐正瑞的博客地址
摘要: https://www.cnblogs.com/tzrblogs
阅读全文
posted @ 2024-09-24 20:16 唐正瑞
阅读(21)
评论(0)
推荐(0)
公告
点击右上角即可分享