摘要: TASK 4 点击查看代码 #include <stdio.h> int main() { int count = 0; int ch; FILE *fp; fp = fopen("data4.txt", "r"); if (fp == NULL) { printf("fail to open fi 阅读全文
posted @ 2024-06-24 12:55 MINXZBC 阅读(8) 评论(0) 推荐(0) 编辑
摘要: TASK 4 点击查看代码 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; 阅读全文
posted @ 2024-06-06 10:25 MINXZBC 阅读(7) 评论(0) 推荐(0) 编辑
摘要: TASK 1.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 *pmin, i 阅读全文
posted @ 2024-05-23 10:53 MINXZBC 阅读(7) 评论(0) 推荐(0) 编辑
摘要: TASK 1 点击查看代码 #include <stdio.h> #define N 4 void test1() { int a[N] = {1, 9, 8, 4}; int i; // 输出数组a占用的内存字节数 printf("sizeof(a) = %d\n", sizeof(a)); // 阅读全文
posted @ 2024-05-19 23:07 MINXZBC 阅读(4) 评论(0) 推荐(0) 编辑
摘要: TASK 1 点击查看代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[ 阅读全文
posted @ 2024-04-27 10:25 MINXZBC 阅读(4) 评论(0) 推荐(0) 编辑
摘要: TASK 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 阅读全文
posted @ 2024-04-15 14:08 MINXZBC 阅读(2) 评论(0) 推荐(0) 编辑
摘要: task1 } 点击查看代码 #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 阅读全文
posted @ 2024-03-16 11:08 MINXZBC 阅读(5) 评论(0) 推荐(0) 编辑