摘要: task4 task4代码: #include <stdio.h> #include <stdlib.h> int main(){ FILE *fp; int line_count=0; int char_count=0; int ch; fp=fopen("C:\\Users\\wangh\\De 阅读全文
posted @ 2025-06-09 12:52 王皓惟 阅读(15) 评论(0) 推荐(0)
摘要: task4 task4代码: #include <stdio.h> #include <stdlib.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作 阅读全文
posted @ 2025-06-03 11:08 王皓惟 阅读(9) 评论(0) 推荐(0)
摘要: 实验1 实验1代码: #include <stdio.h> #include<stdlib.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], int n 阅读全文
posted @ 2025-05-18 23:09 王皓惟 阅读(11) 评论(0) 推荐(0)
摘要: 任务1 任务1代码 #include <stdio.h> #include<stdlib.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; printf("sizeof(x) = %d\n", size 阅读全文
posted @ 2025-04-20 20:43 王皓惟 阅读(23) 评论(0) 推荐(0)
摘要: 任务1 任务1代码 #include<stdio.h> #include<stdlib.h> char score_to_grade(int score); int main(){ int score; char grade; while(scanf("%d",&score)!=EOF){ grad 阅读全文
posted @ 2025-04-08 20:44 王皓惟 阅读(20) 评论(0) 推荐(0)
摘要: 任务1 任务1代码 #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 int main() { int number; int i; srand(time(0)); for(i=0;i<N;++i){ number = 阅读全文
posted @ 2025-03-17 15:15 王皓惟 阅读(19) 评论(0) 推荐(1)
摘要: 实验1 实验1代码 p1: #include<stdlib.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); printf(" o \n"); printf("<H>\n"); printf("I I\n"); sy 阅读全文
posted @ 2025-03-09 10:51 王皓惟 阅读(19) 评论(0) 推荐(0)