会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zhangliangni
博客园
首页
新随笔
联系
订阅
管理
随笔 - 7
文章 - 0
评论 - 0
阅读 -
65
2025年6月7日
实验7
摘要: task1-3 无需写 task4 #include <ctype.h> int main() { FILE *file; int line_count = 0; int char_count = 0; int ch; int in_line = 0; file = fopen("data4.txt
阅读全文
posted @ 2025-06-07 15:21 靓liang仔
阅读(12)
评论(0)
推荐(0)
2025年5月29日
实验6
摘要: task1 无需写 task2 无需写 task3 无需写 task4 #include <stdio.h> #include <string.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名
阅读全文
posted @ 2025-05-29 15:19 靓liang仔
阅读(8)
评论(0)
推荐(0)
2025年5月19日
实验5
摘要: task1 #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 @ 2025-05-19 13:26 靓liang仔
阅读(7)
评论(0)
推荐(0)
2025年4月14日
实验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(
阅读全文
posted @ 2025-04-14 15:03 靓liang仔
阅读(12)
评论(0)
推荐(0)
2025年4月10日
实验3
摘要: task1 代码 #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = sc
阅读全文
posted @ 2025-04-10 02:06 靓liang仔
阅读(14)
评论(0)
推荐(0)
2025年3月22日
实验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;
阅读全文
posted @ 2025-03-22 20:39 靓liang仔
阅读(8)
评论(0)
推荐(0)
2025年3月9日
实验1
摘要: task1 #include <stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); return 0; } task2 // 从键盘上输入三个数据作为三角形边长,判断其能否构成三角形 // 构成三角形的条件
阅读全文
posted @ 2025-03-09 22:42 靓liang仔
阅读(4)
评论(0)
推荐(0)
公告
昵称:
靓liang仔
园龄:
4个月
粉丝:
1
关注:
1
<
2025年7月
>
日
一
二
三
四
五
六
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
随笔档案
2025年6月(1)
2025年5月(2)
2025年4月(2)
2025年3月(2)
阅读排行榜
1. 实验3(14)
2. 实验7(12)
3. 实验4(12)
4. 实验6(8)
5. 实验2(8)
点击右上角即可分享