摘要: task4 点击查看代码 #include<stdio.h> #include<stdlib.h> #include<string.h> int main() { FILE *fp; int line=0,len=0; char ch[1000]; char c; fp=fopen("C:\\Use 阅读全文
posted @ 2026-01-01 00:11 白艺 阅读(6) 评论(1) 推荐(0)
摘要: 前三均为验证性题目,下来已实操过了 task4 点击查看代码 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 do 阅读全文
posted @ 2025-12-25 21:02 白艺 阅读(4) 评论(1) 推荐(0)
摘要: task.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,int *pm 阅读全文
posted @ 2025-12-12 13:58 白艺 阅读(9) 评论(1) 推荐(0)
摘要: task.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", siz 阅读全文
posted @ 2025-11-17 12:55 白艺 阅读(8) 评论(1) 推荐(0)
摘要: task.1 点击查看代码 #include <stdio.h> char score_to_grade(int score); int main(){ int score; int grade; while(scanf("%d",&score)!=EOF){ grade = score_to_gr 阅读全文
posted @ 2025-10-31 01:13 白艺 阅读(12) 评论(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, rand 阅读全文
posted @ 2025-10-19 18:07 白艺 阅读(9) 评论(1) 推荐(0)
摘要: 实验一 点击查看代码 #include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0; } 1.1 点击查看代码 #include <stdio.h> int main() { p 阅读全文
posted @ 2025-10-09 18:57 白艺 阅读(12) 评论(2) 推荐(0)