会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hangyuxi
博客园
首页
新随笔
联系
订阅
管理
2025年6月8日
实验7
摘要: 任务4 1 #include<stdlib.h> 2 #include<stdio.h> 3 #define N 100 4 int main(){ 5 int i, count=0,line=1; 6 char str[N]; 7 FILE *fp; 8 fp = fopen("data4.txt
阅读全文
posted @ 2025-06-08 18:00 雾曦
阅读(23)
评论(0)
推荐(0)
2025年5月29日
实验6
摘要: 任务4 1 #include <stdio.h> 2 #define N 10 3 #include<stdlib.h> 4 typedef struct { 5 char isbn[20]; // isbn号 6 char name[80]; // 书名 7 char author[80]; //
阅读全文
posted @ 2025-05-29 17:08 雾曦
阅读(34)
评论(0)
推荐(0)
2025年5月15日
实验5
摘要: 任务1 1.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-15 21:11 雾曦
阅读(48)
评论(0)
推荐(0)
2025年4月20日
实验4
摘要: 任务1 1 #include <stdio.h> 2 #include<stdlib.h> 3 #define N 4 4 #define M 2 5 6 void test1() { 7 int x[N] = {1, 9, 8, 4}; 8 int i; 9 10 // 输出数组x占用的内存字节数
阅读全文
posted @ 2025-04-20 16:28 雾曦
阅读(28)
评论(0)
推荐(0)
2025年4月15日
博客园地址
摘要: https://www.cnblogs.com/hangyuxi
阅读全文
posted @ 2025-04-15 09:14 雾曦
阅读(31)
评论(0)
推荐(0)
2025年4月10日
实验3
摘要: 任务1 1 #include <stdio.h> 2 #include<stdlib.h> 3 4 char score_to_grade(int score); // 函数声明 5 6 int main() { 7 int score; 8 char grade; 9 10 while(scanf
阅读全文
posted @ 2025-04-10 07:35 雾曦
阅读(27)
评论(0)
推荐(0)
2025年3月23日
实验2
摘要: 1 实验任务1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 7 int main() { 8 int number; 9 int i; 10 11 srand(time(0)); /
阅读全文
posted @ 2025-03-23 10:58 雾曦
阅读(23)
评论(0)
推荐(0)
2025年3月16日
博客链接
摘要: https://www.cnblogs.com/hangyuxi
阅读全文
posted @ 2025-03-16 11:35 雾曦
阅读(42)
评论(0)
推荐(0)
2025年3月8日
实验 1 C语言输入输出和简单程序编写
摘要: 实验任务1 源代码 1 #include<stdio.h> 2 #include<stdlib.h> 3 int main() 4 { 5 printf(" O \n"); 6 printf("<H>\n"); 7 printf("I I\n"); 8 printf(" O \n"); 9 prin
阅读全文
posted @ 2025-03-08 11:27 雾曦
阅读(36)
评论(0)
推荐(0)
公告