会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
think-ringht
博客园
首页
新随笔
联系
订阅
管理
2025年5月27日
实验6
摘要: task4 1 #include <stdio.h> 2 #define N 10 3 4 typedef struct { 5 char isbn[20]; // isbn号 6 char name[80]; // 书名 7 char author[80]; // 作者 8 double sale
阅读全文
posted @ 2025-05-27 22:06 think_right
阅读(223)
评论(0)
推荐(0)
2025年5月18日
实验5
摘要: task1_1 1 #include <stdio.h> 2 #define N 5 3 4 void input(int x[], int n); 5 void output(int x[], int n); 6 void find_min_max(int x[], int n, int *pmi
阅读全文
posted @ 2025-05-18 19:51 think_right
阅读(239)
评论(0)
推荐(0)
2025年4月20日
实验4
摘要: 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", sizeof(x))
阅读全文
posted @ 2025-04-20 21:13 think_right
阅读(19)
评论(0)
推荐(0)
2025年4月9日
实验3
摘要: task1 #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score
阅读全文
posted @ 2025-04-09 15:40 think_right
阅读(228)
评论(0)
推荐(0)
2025年3月23日
实验2
摘要: task1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int number; int i; srand(time(0)); for(i = 0; i < N; ++i) { nu
阅读全文
posted @ 2025-03-23 16:18 think_right
阅读(16)
评论(0)
推荐(0)
2025年3月9日
实验1
摘要: task1 1 #include <stdio.h> 2 3 int main() { 4 int i=0; 5 while (i < 2) { 6 printf(" 0\n"); 7 printf("<H>\n"); 8 printf("I I\n"); 9 i++; 10 } 11 12 ret
阅读全文
posted @ 2025-03-09 18:29 think_right
阅读(253)
评论(0)
推荐(0)
公告