摘要: 由于汉字编码格式不同,输出结果是乱码,我也不会修改. 阅读全文
posted @ 2024-06-21 18:21 宋的客栈 阅读(32) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<string.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_pr 阅读全文
posted @ 2024-06-09 21:48 宋的客栈 阅读(41) 评论(0) 推荐(0)
摘要: 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, int *pmax); i 阅读全文
posted @ 2024-05-26 22:11 宋的客栈 阅读(24) 评论(0) 推荐(0)
摘要: #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)); // 输出int类型数组a中每个 阅读全文
posted @ 2024-05-20 12:26 宋的客栈 阅读(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[]); // 函数声明 vo 阅读全文
posted @ 2024-04-28 22:41 宋的客栈 阅读(21) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 int main() { int i,number; srand( time(0) ); for(i = 0;i < N;++i) { number = rand()% 阅读全文
posted @ 2024-04-15 12:54 宋的客栈 阅读(25) 评论(0) 推荐(0)
摘要: ![](https://img2024.cnblogs.com/blog/3405766/202403/3405766-20240318132446855-1798530382.png) ![](https://img2024.cnblogs.com/blog/3405766/202403/3405766-20240318132452083-341045657.png) ![](https://i 阅读全文
posted @ 2024-03-18 13:27 宋的客栈 阅读(39) 评论(2) 推荐(0)