会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lichangxu
博客园
首页
新随笔
联系
订阅
管理
2024年12月25日
实验7
摘要: 任务1 思考:fscanf会返回读取的数据个数,此处是起到保证输出数据正确的作用。 任务2 思考:基本同任务一相同。 任务3 思考:\' 也表示 ‘ 任务4 源代码 #include<stdio.h> int main(){ FILE *fp; int line=0; int num=0; char
阅读全文
posted @ 2024-12-25 21:54 难绷
阅读(29)
评论(0)
推荐(0)
2024年12月18日
实验6
摘要: 任务4 源代码 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价
阅读全文
posted @ 2024-12-18 19:32 难绷
阅读(6)
评论(0)
推荐(0)
2024年12月5日
实验5
摘要: 任务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 *pmax
阅读全文
posted @ 2024-12-05 00:00 难绷
阅读(20)
评论(0)
推荐(0)
2024年11月9日
实验4
摘要: 实验1 源代码 #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 @ 2024-11-09 23:14 难绷
阅读(10)
评论(0)
推荐(0)
2024年10月25日
实验作业3
摘要: 任务1 源代码 #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = sco
阅读全文
posted @ 2024-10-25 23:31 难绷
阅读(30)
评论(0)
推荐(0)
2024年10月10日
实验作业2
摘要: 任务1 源代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 397 #define N2 476 #define N3 21 int main() { int cnt; int ran
阅读全文
posted @ 2024-10-10 14:18 难绷
阅读(17)
评论(0)
推荐(0)
2024年9月28日
实验作业1
摘要: 实验一 任务一 源代码 #include<stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); printf(" o \n"); printf("<H>\n"); printf("I I\n"); retur
阅读全文
posted @ 2024-09-28 16:46 难绷
阅读(17)
评论(0)
推荐(0)
2024年9月25日
我的博客地址
摘要: https://home.cnblogs.com/u/lichangxu
阅读全文
posted @ 2024-09-25 16:51 难绷
阅读(10)
评论(0)
推荐(0)
公告