摘要: 实验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)
摘要: 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)
摘要: 实验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)
摘要: 实验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)
摘要: 实验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)