会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
AAA-ZZX
博客园
首页
新随笔
联系
订阅
管理
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 郑子鑫
阅读(6)
评论(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 郑子鑫
阅读(9)
评论(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 郑子鑫
阅读(16)
评论(1)
推荐(0)
公告