会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
AAA-ZZX
博客园
首页
新随笔
联系
订阅
管理
2025年12月28日
Experiment7
摘要: Task4: 1 #include <stdio.h> 2 #include <stdio.h> 3 #include <ctype.h> 4 5 int main() { 6 FILE *file = fopen("data4.txt", "r"); 7 if (file == NULL) { 8
阅读全文
posted @ 2025-12-28 16:55 郑子鑫
阅读(10)
评论(1)
推荐(0)
2025年12月22日
Experiment6
摘要: 前三个任务代码均编写并运行验证 Task4: 1 #include <stdio.h> 2 #define N 10 3 typedef struct { 4 char isbn[20]; // isbn号 5 char name[80]; // 书名 6 char author[80]; // 作
阅读全文
posted @ 2025-12-22 20:04 郑子鑫
阅读(18)
评论(1)
推荐(0)
2025年12月10日
Experiment5
摘要: Task1_1: 1 #include <stdio.h> 2 #define N 5 3 void input(int x[],int n); 4 void output(int x[],int n); 5 void find_min_max(int x[],int n,int *pmin,int
阅读全文
posted @ 2025-12-10 22:47 郑子鑫
阅读(9)
评论(1)
推荐(0)
2025年11月13日
Experiment4
摘要: 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 void test1() { 5 int x[N] = {1, 9, 8, 4}; 6 int i; 7 8 printf("sizeof(x) = %d\n", sizeof(x)); 9 10
阅读全文
posted @ 2025-11-13 20:22 郑子鑫
阅读(7)
评论(1)
推荐(0)
2025年10月29日
Experiment3
摘要: Task1: 1 #include <stdio.h> 2 3 char score_to_grade(int score); 4 5 int main() { 6 int score; 7 char grade; 8 9 while(scanf("%d", &score) != EOF) { 10
阅读全文
posted @ 2025-10-29 22:53 郑子鑫
阅读(7)
评论(1)
推荐(0)
2025年10月16日
experiment2
摘要: Task1 问题1: srand(time(NULL));的作用:经过查询,发现这行代码用于初始化随机数生成器的种子,srand()是设置随机种子的函数,time(NULL)返回当前系统时间,将当前时间作为种子,确保每次程序运行时产生的随机数序列不同.如果去掉这行代码,发现每次运行时产生的"随机"学
阅读全文
posted @ 2025-10-16 21:49 郑子鑫
阅读(10)
评论(1)
推荐(0)
2025年10月8日
experiment1
摘要: 1 #include <stdio.h> 2 int main() 3 { 4 printf(" O \n"); 5 printf("<H>\n"); 6 printf("I I\n"); 7 return 0; 1 #include <stdio.h> 2 int main() 3 { 4 pri
阅读全文
posted @ 2025-10-08 21:11 郑子鑫
阅读(19)
评论(1)
推荐(0)
公告