tgwz

2025年12月27日

实验7

摘要: task4.c 1 #include <stdio.h> 2 #include <ctype.h> 3 4 int main() { 5 FILE *fp; 6 char ch; 7 int line = 0; 8 int count = 0; 9 10 fp = fopen("C:\\Users\ 阅读全文

posted @ 2025-12-27 21:53 添罐望仔 阅读(7) 评论(1) 推荐(0)

2025年12月23日

实验6

摘要: task1.c task1.c 1 #include <stdio.h> 2 #include <string.h> 3 #define N 3 4 typedef struct student { 5 int id; 6 char name[20]; 7 char subject[20]; 8 d 阅读全文

posted @ 2025-12-23 15:18 添罐望仔 阅读(7) 评论(1) 推荐(0)

2025年12月10日

实验5

摘要: task1_1.c 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 *p 阅读全文

posted @ 2025-12-10 23:34 添罐望仔 阅读(9) 评论(1) 推荐(0)

2025年11月14日

实验4

摘要: task1 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 printf("sizeof(x)=%d\n",sizeof(x)); 8 for(i=0; 阅读全文

posted @ 2025-11-14 15:02 添罐望仔 阅读(9) 评论(1) 推荐(0)

2025年10月27日

实验3

摘要: task1 1 #include <stdio.h> 2 char score_to_grade(int score); 3 int main(){ 4 int score; 5 char grade; 6 while(scanf("%d",&score)!=EOF){ 7 grade=score_ 阅读全文

posted @ 2025-10-27 21:15 添罐望仔 阅读(5) 评论(1) 推荐(0)

2025年10月15日

实验任务2

摘要: task1.c 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 r 阅读全文

posted @ 2025-10-15 21:42 添罐望仔 阅读(9) 评论(1) 推荐(0)

2025年10月7日

实验作业1

摘要: task1-1.c 1 int main() 2 { 3 printf(" O \n"); 4 printf("<H>\n"); 5 printf("I I\n"); 6 printf(" O \n"); 7 printf("<H>\n"); 8 printf("I I\n"); 9 return 阅读全文

posted @ 2025-10-07 15:20 添罐望仔 阅读(22) 评论(0) 推荐(0)

导航