摘要: 实验任务1-3已验证 实验任务4 源代码 点击查看代码 #include <stdio.h> #define M 100 int main() { char line[M]; FILE *fp; int i = 0,n,linelength = 1,number = 0; fp = fopen("d 阅读全文
posted @ 2025-12-30 17:50 lolikana 阅读(9) 评论(1) 推荐(0)
摘要: 实验任务1-3已验证 实验4 源代码 点击查看代码 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double 阅读全文
posted @ 2025-12-24 22:22 lolikana 阅读(5) 评论(1) 推荐(0)
摘要: 实验任务1.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 阅读全文
posted @ 2025-12-12 14:01 lolikana 阅读(10) 评论(0) 推荐(0)
摘要: 实验任务一 源代码 点击查看代码 #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; printf("sizeof(x) = %d\n", sizeof(x)); for 阅读全文
posted @ 2025-11-16 17:07 lolikana 阅读(18) 评论(1) 推荐(0)
摘要: 实验任务1 源代码 点击查看代码 #include <stdio.h> char score_to_grade(int score); int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = sc 阅读全文
posted @ 2025-10-30 15:26 lolikana 阅读(11) 评论(1) 推荐(0)
摘要: 实验任务1 源代码 点击查看代码 #include<stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 80 #define N2 35 int main(){ int cnt; int random_major 阅读全文
posted @ 2025-10-19 17:31 lolikana 阅读(14) 评论(4) 推荐(0)
摘要: 实验任务一 源代码 点击查看代码 #include<stdio.h> int main(){ printf(" o \n"); printf("<H>\n"); printf("I I\n"); return 0; } #include<stdio.h> int main(){ printf(" o 阅读全文
posted @ 2025-10-05 10:34 lolikana 阅读(15) 评论(1) 推荐(0)