摘要: task4 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 double sale 阅读全文
posted @ 2025-05-27 22:06 think_right 阅读(223) 评论(0) 推荐(0)
摘要: task1_1 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 *pmi 阅读全文
posted @ 2025-05-18 19:51 think_right 阅读(239) 评论(0) 推荐(0)
摘要: task1 #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; // 输出数组x占用的内存字节数 printf("sizeof(x) = %d\n", sizeof(x)) 阅读全文
posted @ 2025-04-20 21:13 think_right 阅读(19) 评论(0) 推荐(0)
摘要: task1 #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score 阅读全文
posted @ 2025-04-09 15:40 think_right 阅读(228) 评论(0) 推荐(0)
摘要: task1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int number; int i; srand(time(0)); for(i = 0; i < N; ++i) { nu 阅读全文
posted @ 2025-03-23 16:18 think_right 阅读(16) 评论(0) 推荐(0)
摘要: task1 1 #include <stdio.h> 2 3 int main() { 4 int i=0; 5 while (i < 2) { 6 printf(" 0\n"); 7 printf("<H>\n"); 8 printf("I I\n"); 9 i++; 10 } 11 12 ret 阅读全文
posted @ 2025-03-09 18:29 think_right 阅读(253) 评论(0) 推荐(0)