摘要:
task4 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 int main() { 5 FILE *fp = fopen("data4.txt", "r"); 6 if (fp == NULL) { 7 perror("无法打开文件"); 8 retu 阅读全文
posted @ 2025-06-09 10:40
卡希勒
阅读(2)
评论(0)
推荐(0)
摘要:
task4 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 int main() { 5 FILE *fp = fopen("data4.txt", "r"); 6 if (fp == NULL) { 7 perror("无法打开文件"); 8 retu 阅读全文
posted @ 2025-06-09 10:40
卡希勒
阅读(2)
评论(0)
推荐(0)
摘要:
task1 1 #include <stdio.h> 2 #include <string.h> 3 #define N 3 // 运行程序输入测试时,可以把N改小一些输入测试 4 5 typedef struct student { 6 int id; // 学号 7 char name[20]; 阅读全文
posted @ 2025-06-03 09:58
卡希勒
阅读(4)
评论(0)
推荐(0)
摘要:
task1: 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 阅读全文
posted @ 2025-05-19 03:00
卡希勒
阅读(3)
评论(0)
推荐(0)
摘要:
task 1: 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 5 void test1(){ 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 9 printf("sizeof(x) = %d\n", sizeof(x 阅读全文
posted @ 2025-04-20 23:46
卡希勒
阅读(4)
评论(0)
推荐(0)
摘要:
task1: 1 #include <stdio.h> 2 3 char score_to_grade(int score); 4 5 int main(){ 6 int score; 7 char grade; 8 while(scanf("%d",&score)!= EOF){ 9 grade 阅读全文
posted @ 2025-04-09 23:34
卡希勒
阅读(4)
评论(0)
推荐(0)
摘要:
task1: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 7 int main(){ 8 int number; 9 int i; 10 11 srand(time(0)); 12 阅读全文
posted @ 2025-03-27 20:21
卡希勒
阅读(3)
评论(0)
推荐(0)
摘要:
任务1 1.1 #include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0 阅读全文
posted @ 2025-03-09 19:59
卡希勒
阅读(4)
评论(0)
推荐(0)
|