摘要: 任务4 1 #include<stdlib.h> 2 #include<stdio.h> 3 #define N 100 4 int main(){ 5 int i, count=0,line=1; 6 char str[N]; 7 FILE *fp; 8 fp = fopen("data4.txt 阅读全文
posted @ 2025-06-08 18:00 雾曦 阅读(23) 评论(0) 推荐(0)
摘要: 任务4 1 #include <stdio.h> 2 #define N 10 3 #include<stdlib.h> 4 typedef struct { 5 char isbn[20]; // isbn号 6 char name[80]; // 书名 7 char author[80]; // 阅读全文
posted @ 2025-05-29 17:08 雾曦 阅读(34) 评论(0) 推荐(0)
摘要: 任务1 1.1 1 #include <stdio.h> 2 #define N 5 3 4 void input(int x[], int n); 5 void output(int x[], int n); 6 void find_min_max(int x[], int n, int *pmi 阅读全文
posted @ 2025-05-15 21:11 雾曦 阅读(48) 评论(0) 推荐(0)
摘要: 任务1 1 #include <stdio.h> 2 #include<stdlib.h> 3 #define N 4 4 #define M 2 5 6 void test1() { 7 int x[N] = {1, 9, 8, 4}; 8 int i; 9 10 // 输出数组x占用的内存字节数 阅读全文
posted @ 2025-04-20 16:28 雾曦 阅读(28) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/hangyuxi 阅读全文
posted @ 2025-04-15 09:14 雾曦 阅读(31) 评论(0) 推荐(0)
摘要: 任务1 1 #include <stdio.h> 2 #include<stdlib.h> 3 4 char score_to_grade(int score); // 函数声明 5 6 int main() { 7 int score; 8 char grade; 9 10 while(scanf 阅读全文
posted @ 2025-04-10 07:35 雾曦 阅读(27) 评论(0) 推荐(0)
摘要: 1 实验任务1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 7 int main() { 8 int number; 9 int i; 10 11 srand(time(0)); / 阅读全文
posted @ 2025-03-23 10:58 雾曦 阅读(23) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/hangyuxi 阅读全文
posted @ 2025-03-16 11:35 雾曦 阅读(42) 评论(0) 推荐(0)
摘要: 实验任务1 源代码 1 #include<stdio.h> 2 #include<stdlib.h> 3 int main() 4 { 5 printf(" O \n"); 6 printf("<H>\n"); 7 printf("I I\n"); 8 printf(" O \n"); 9 prin 阅读全文
posted @ 2025-03-08 11:27 雾曦 阅读(36) 评论(0) 推荐(0)