摘要: 一、实验结论 1、task4 #include <stdio.h>#include <stdlib.h>#include <ctype.h>int main(){ FILE *fp; int line_count=0; int char_count=0; int ch; fp=fopen("D:\\ 阅读全文
posted @ 2025-06-09 12:15 小水稻 阅读(16) 评论(0) 推荐(0)
摘要: 一、实验结论 1、实验任务4 task4 #include <stdio.h>#define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_ 阅读全文
posted @ 2025-06-03 12:31 小水稻 阅读(17) 评论(0) 推荐(0)
摘要: 一、实验结论 1、实验任务1 task1_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 *pmi 阅读全文
posted @ 2025-05-18 18:23 小水稻 阅读(17) 评论(0) 推荐(0)
摘要: 四、实验结论 实验任务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", sizeo 阅读全文
posted @ 2025-04-20 15:42 小水稻 阅读(22) 评论(0) 推荐(0)
摘要: 一、实验结论 task1 #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade 阅读全文
posted @ 2025-04-09 22:27 小水稻 阅读(26) 评论(0) 推荐(0)
摘要: 一、实验结论 1、实验任务1 task1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int number; int i; srand(time(0)); // 以当前系统时间作为 阅读全文
posted @ 2025-03-22 23:08 小水稻 阅读(18) 评论(0) 推荐(0)
摘要: 一、实验结论 实验任务1 task1_1 #include <stdio.h>#include <stdlib.h>int main(){printf(" O \n");printf("<H>\n");printf("I I\n");printf(" O \n");printf("<H>\n");p 阅读全文
posted @ 2025-03-09 13:38 小水稻 阅读(16) 评论(0) 推荐(0)