摘要: 4.`#include <stdio.h> define N 10 include<stdlib.h> typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_ 阅读全文
posted @ 2026-06-14 19:09 xialkQwQ 阅读(7) 评论(0) 推荐(0)
摘要: 一 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); 阅读全文
posted @ 2026-06-02 22:34 xialkQwQ 阅读(10) 评论(0) 推荐(0)
摘要: include <stdio.h> define N 4 define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; printf("sizeof(x) = %d\n", sizeof(x)); for (i = 0; i < N; ++i) 阅读全文
posted @ 2026-05-05 21:07 xialkQwQ 阅读(5) 评论(0) 推荐(0)
摘要: include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score_to_gra 阅读全文
posted @ 2026-04-20 11:45 xialkQwQ 阅读(9) 评论(0) 推荐(0)
摘要: 1.一:生成五个202400420001~202400420100范围内的随机数并输出 二:生成一个一到一百之间的随机数 三:使数字输出时以四位数输出,当数字不足四位时,在数字前补零凑足四位 四:以当前系统时间作为随机数种子,让rand()生成的伪随机数每次运行程序都不同;若去掉这行,多次运行程序会 阅读全文
posted @ 2026-04-06 17:43 xialkQwQ 阅读(11) 评论(0) 推荐(0)
摘要: 1.(1) include <stdio.h> int main() { printf(" O \n"); printf("\n"); printf("I I\n"); printf(" O \n"); printf("\n"); printf("I I\n"); return 0; } (2) i 阅读全文
posted @ 2026-03-19 17:38 xialkQwQ 阅读(9) 评论(0) 推荐(0)