摘要: task1_1.c 1 // 将图书信息写入文本文件data1.txt 2 3 #include <stdio.h> 4 5 #define N 80 6 7 typedef struct { 8 char name[N]; // 书名 9 char author[N]; // 作者 10 } Bo 阅读全文
posted @ 2023-12-21 14:35 韷 阅读(14) 评论(0) 推荐(0)
摘要: task1.c 1 #define _CRT_SECURE_NO_WARNINGS 2 #include <stdio.h> 3 #include <string.h> 4 #define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 5 typedef struct stude 阅读全文
posted @ 2023-12-17 17:19 韷 阅读(14) 评论(0) 推荐(0)
摘要: task1.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 * 阅读全文
posted @ 2023-12-03 20:25 韷 阅读(15) 评论(0) 推荐(0)
摘要: task1_1.c源代码 1 #include <stdio.h> 2 #define N 4 3 void test1() { 4 int a[N] = { 1, 9, 8, 4 }; 5 int i; 6 // 输出数组a占用的内存字节数 7 printf("sizeof(a) = %d\n", 阅读全文
posted @ 2023-11-16 17:36 韷 阅读(15) 评论(0) 推荐(0)
摘要: task1.c源代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #include <windows.h> 5 #define N 80 6 void print_text(int line, int col, c 阅读全文
posted @ 2023-11-05 13:18 韷 阅读(14) 评论(0) 推荐(0)
摘要: task1.c源代码 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 5 #define N 5 6 #define N1 374 7 #define N2 465 8 9 int main() 10 { 11 int nu 阅读全文
posted @ 2023-10-16 17:09 韷 阅读(24) 评论(0) 推荐(0)
摘要: task1.c源代码 #include<stdio.h> #include<stdlib.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); return 0; } 运行结果 #include<stdio.h> int 阅读全文
posted @ 2023-09-28 15:18 韷 阅读(88) 评论(0) 推荐(0)