摘要: 实验4 1 #define _CRT_SECURE_NO_WARNINGS 2 #include<stdio.h> 3 #define N 1000 4 5 int main() { 6 FILE* fp; 7 char s[N]; 8 int i = 0, n, lines = 1, feizif 阅读全文
posted @ 2025-12-29 14:51 哈气的大猫 阅读(9) 评论(1) 推荐(0)
摘要: 实验4 1 #include <stdio.h> 2 #define N 10 3 4 typedef struct { 5 char isbn[20]; // isbn号 6 char name[80]; // 书名 7 char author[80]; // 作者 8 double sales_ 阅读全文
posted @ 2025-12-20 14:53 哈气的大猫 阅读(10) 评论(1) 推荐(0)
摘要: 1. task1_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 * 阅读全文
posted @ 2025-12-09 19:00 哈气的大猫 阅读(15) 评论(1) 推荐(0)
摘要: 实验1 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 void test1() { 5 int x[N] = { 1,9,8,4 }; 6 int i; 7 8 printf("sizeof(x)=%d\n", sizeof(x)); 9 fo 阅读全文
posted @ 2025-11-11 21:01 哈气的大猫 阅读(12) 评论(1) 推荐(0)
摘要: 试验任务1 1 1 #include <stdio.h> 2 char score_to_grade(int score); 3 int main() 4 { 5 int score; 6 char grade; 7 while(scanf("%d",&score) !=EOF){ 8 grade= 阅读全文
posted @ 2025-10-26 14:25 哈气的大猫 阅读(20) 评论(1) 推荐(0)
摘要: 实验1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #define N 5 5 #define N1 80 6 #define N2 35 7 int main() { 8 int cnt; 9 int rando 阅读全文
posted @ 2025-10-14 16:13 哈气的大猫 阅读(14) 评论(1) 推荐(0)
摘要: 实验任务1 1 // 打印一个字符小人 2 #include <stdio.h> 3 int main() 4 { 5 printf(" O \n"); 6 printf("<H>\n"); 7 printf("I I\n"); 8 printf(" O \n"); 9 printf("<H>\n" 阅读全文
posted @ 2025-09-27 15:24 哈气的大猫 阅读(27) 评论(1) 推荐(0)