会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yibanzhenyu
博客园
首页
新随笔
联系
订阅
管理
2025年6月9日
实验7 文件应用编程
摘要: 实验7 文件应用编程 实验任务4 实验程序 #include <stdio.h> #include <string.h> #define _CRT_SECURE_NO_WARNINGS #define N 10 typedef struct { long id; char name[20]; flo
阅读全文
posted @ 2025-06-09 10:12 pengzhenyu
阅读(1)
评论(0)
推荐(0)
2025年6月3日
实验六 C语言结构体、枚举应用编程
摘要: task4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 i
阅读全文
posted @ 2025-06-03 19:14 pengzhenyu
阅读(4)
评论(0)
推荐(0)
2025年4月21日
实验4 C语⾔数组应⽤编程
摘要: 实验4 C语⾔数组应⽤编程 task1 实验程序task1.c #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; // 输出数组x占用的内存字节数 printf("siz
阅读全文
posted @ 2025-04-21 11:33 pengzhenyu
阅读(6)
评论(0)
推荐(0)
2025年4月9日
实验3 C语言函数应用编程
摘要: 实验3 C语言函数应用编程 task1 实验程序task1.c #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &scor
阅读全文
posted @ 2025-04-09 14:38 pengzhenyu
阅读(22)
评论(0)
推荐(0)
2025年3月12日
实验1 C语言输入输出和简单程序编写
摘要: 实验1 C语言输入输出和简单程序编写 task1 程序task1_1.c #include<stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); printf(" O \n"); printf("<H>\n"
阅读全文
posted @ 2025-03-12 19:53 pengzhenyu
阅读(20)
评论(0)
推荐(0)
公告