摘要: 实验4 1 #include <stdio.h> 2 #include <ctype.h> 3 4 int main() { 5 6 FILE *fp; 7 int line_count = 0; 8 int char_count = 0; 9 char ch; 10 11 12 fp = fope 阅读全文
posted @ 2025-12-27 21:34 cchheenn 阅读(8) 评论(1) 推荐(0)
摘要: 实验4 1 #include <stdio.h> 2 #include <string.h> 3 #define N 10 4 5 typedef struct { 6 char isbn[20]; 7 char name[80]; 8 char author[80]; 9 double sales 阅读全文
posted @ 2025-12-24 18:23 cchheenn 阅读(8) 评论(1) 推荐(0)
摘要: 实验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 *pmin, i 阅读全文
posted @ 2025-12-11 23:22 cchheenn 阅读(11) 评论(1) 推荐(0)
摘要: 实验1#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 (i = 0; i < N; 阅读全文
posted @ 2025-11-16 10:30 cchheenn 阅读(21) 评论(1) 推荐(0)
摘要: 实验1 1 #include <stdio.h> 2 char score_to_grade(int score); 3 int main() { 4 int score; 5 char grade; 6 7 while(scanf("%d", &score) != EOF) { 8 grade = 阅读全文
posted @ 2025-10-26 21:20 cchheenn 阅读(23) 评论(2) 推荐(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 17:18 cchheenn 阅读(17) 评论(1) 推荐(0)
摘要: 实验1#include<studio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0; } 实验2 1 #include<stdio.h> 2 int main() 3 { 4 double a, 阅读全文
posted @ 2025-10-05 11:01 cchheenn 阅读(18) 评论(1) 推荐(0)