摘要: !The blogger is so lazy that he doesn't want to switch the input method. Declare:File Pass Task4 Source code #include <stdio.h> #include <stdlib.h> in 阅读全文
posted @ 2024-12-24 15:59 石宇昊 阅读(27) 评论(1) 推荐(1)
摘要: Task4 源代码 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 阅读全文
posted @ 2024-12-16 14:12 石宇昊 阅读(12) 评论(0) 推荐(0)
摘要: task1_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 * 阅读全文
posted @ 2024-12-02 15:58 石宇昊 阅读(19) 评论(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 阅读全文
posted @ 2024-11-04 18:58 石宇昊 阅读(24) 评论(0) 推荐(0)
摘要: task1 源代码 #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = s 阅读全文
posted @ 2024-10-23 20:40 石宇昊 阅读(27) 评论(0) 推荐(0)
摘要: 任务1 源代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 397 #define N2 476 #define N3 21 int main() { int cnt; int ran 阅读全文
posted @ 2024-10-09 23:42 石宇昊 阅读(24) 评论(0) 推荐(0)
摘要: task1 源代码1 1 #include<stdio.h> 2 int main() 3 { 4 printf(" o \n"); 5 printf("<H>\n"); 6 printf("I I\n"); 7 8 printf(" o \n"); 9 printf("<H>\n"); 10 pr 阅读全文
posted @ 2024-09-25 21:11 石宇昊 阅读(26) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/hh0417blogs 阅读全文
posted @ 2024-09-25 15:53 石宇昊 阅读(39) 评论(0) 推荐(0)