摘要: task 1.1 #define _CRT_SECURE_NO_WARNINGS // 从文本文件data1.txt中读取图书信息,并打印输出到屏幕 #include <stdio.h> #define N 80 #define M 100 typedef struct { char name[N] 阅读全文
posted @ 2023-12-21 23:31 符周彦彧 阅读(31) 评论(0) 推荐(0)
摘要: task 1.1 #include <stdio.h>#include <string.h> #define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; // 学号 char name[20]; // 姓名 ch 阅读全文
posted @ 2023-12-18 02:40 符周彦彧 阅读(25) 评论(0) 推荐(0)
摘要: task 1_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 * 阅读全文
posted @ 2023-11-29 20:16 符周彦彧 阅读(12) 评论(0) 推荐(0)
摘要: task1_1.c 1 1 #include <stdio.h> 2 2 #define N 4 3 3 4 4 void test1() { 5 5 int a[N] = {1, 9, 8, 4}; 6 6 int i; 7 7 printf("sizeof(a) = %d\n", sizeof( 阅读全文
posted @ 2023-11-19 23:55 符周彦彧 阅读(23) 评论(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 7 void print_text (int line , int col , 阅读全文
posted @ 2023-11-06 12:52 符周彦彧 阅读(25) 评论(0) 推荐(0)
摘要: task1.c #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 374 #define N2 465 int main(){ int number; int i; srand(time(0 阅读全文
posted @ 2023-10-19 23:44 符周彦彧 阅读(30) 评论(0) 推荐(0)
摘要: 实验任务1 1 #include <stdio.h> 2 int main () 3 { 4 printf(" o \n"); 5 printf("<H>\n"); 6 printf("I I \n"); 7 8 return 0; 9 10 } 运行结果 task1_1 task1_2 实验任务2 阅读全文
posted @ 2023-10-06 11:44 符周彦彧 阅读(33) 评论(0) 推荐(0)