摘要: #define _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 100 typedef struct { l 阅读全文
posted @ 2023-12-19 23:08 风月南安 阅读(18) 评论(0) 推荐(0)
摘要: 4、试验任务4 源代码 1 #include <stdio.h> 2 #define N 10 3 4 typedef struct { 5 char isbn[20]; // isbn号 6 char name[80]; // 书名 7 char author[80]; // 作者 8 doubl 阅读全文
posted @ 2023-12-17 16:28 风月南安 阅读(9) 评论(0) 推荐(0)
摘要: #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 *pmax); int m 阅读全文
posted @ 2023-12-03 15:09 风月南安 阅读(13) 评论(0) 推荐(0)
摘要: 1.实验任务1 task1_1源代码: 1 #include<stdio.h> 2 #include<stdlib.h> 3 #define N 4 4 5 void test1() { 6 int a[N] = {1, 9, 8, 4}; 7 int i; 8 9 // 输出数组a占用的内存字节数 阅读全文
posted @ 2023-11-19 19:34 风月南安 阅读(21) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line,int col,char text[]); void print_s 阅读全文
posted @ 2023-11-05 17:51 风月南安 阅读(24) 评论(0) 推荐(0)
摘要: #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)); for( 阅读全文
posted @ 2023-10-22 17:20 风月南安 阅读(16) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main() { printf("0\n"); printf("<H>\n"); printf("I I\n"); printf("0\n"); printf("<H>\n"); printf("I I\n"); return 0; } teST1 tes 阅读全文
posted @ 2023-10-07 08:48 风月南安 阅读(29) 评论(0) 推荐(0)