摘要: t4 点击查看代码 #include <stdio.h> char a[100005]; int main () { FILE *fp; fp = fopen("C:\\Users\\ASUS\\Downloads\\213\\qq\\data4.txt" , "r"); if(fp == NULL 阅读全文
posted @ 2024-12-30 08:22 yuanzhan 阅读(22) 评论(0) 推荐(0)
摘要: t4 点击查看代码 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 阅读全文
posted @ 2024-12-17 20:56 yuanzhan 阅读(41) 评论(0) 推荐(0)
摘要: task1 点击查看代码 #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 *pmin, int 阅读全文
posted @ 2024-12-08 19:45 yuanzhan 阅读(14) 评论(0) 推荐(0)
摘要: task 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", si 阅读全文
posted @ 2024-11-04 18:55 yuanzhan 阅读(15) 评论(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 @ 2024-10-23 19:30 yuanzhan 阅读(37) 评论(0) 推荐(0)
摘要: task1 点击查看代码 #include<stdio.h> #include<stdlib.h> #include<math.h> #define N 5 #define N1 397 #define N2 476 #define N3 21 int main() { int cnt; int r 阅读全文
posted @ 2024-10-09 19:19 yuanzhan 阅读(17) 评论(0) 推荐(0)
摘要: task1 点击查看代码 #include <stdio.h> int main() { int i; for (i = 0 ; i < 2 ; i++) { printf(" o \n"); printf("<H> \n"); printf("I I \n"); } return 0; } 点击查 阅读全文
posted @ 2024-10-01 21:43 yuanzhan 阅读(11) 评论(0) 推荐(0)