摘要: 1 #include<stdio.h> 2 #include<stdlib.h> 3 #define N 80 4 int main(){ 5 int i=0,j; 6 int linecount=0; 7 int charcount=0; 8 char info[N][80]; 9 FILE *f 阅读全文
posted @ 2025-06-02 12:19 闫芊语 阅读(10) 评论(0) 推荐(0)
摘要: #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 int sal 阅读全文
posted @ 2025-06-02 12:14 闫芊语 阅读(11) 评论(0) 推荐(0)
摘要: task 1.1 1 #include <stdio.h> 2 #define N 5 3 #include<stdlib.h> 4 void input(int x[], int n); 5 void output(int x[], int n); 6 void find_min_max(int 阅读全文
posted @ 2025-05-18 22:40 闫芊语 阅读(11) 评论(0) 推荐(0)
摘要: task 1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define N 4 4 #define M 2 5 6 void test1() { 7 int x[N] = {1, 9, 8, 4}; 8 int i; 9 10 // 输出数组x占用的内 阅读全文
posted @ 2025-04-17 08:54 闫芊语 阅读(18) 评论(0) 推荐(0)
摘要: task1 1 #include <stdio.h> 2 #include <stdlib.h> 3 char score_to_grade(int score); // 函数声明 4 5 int main() { 6 int score; 7 char grade; 8 9 while(scanf 阅读全文
posted @ 2025-04-07 19:36 闫芊语 阅读(8) 评论(0) 推荐(0)
摘要: task1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 7 int main() { 8 int number; 9 int i; 10 11 srand(time(0)); 12 阅读全文
posted @ 2025-03-23 12:22 闫芊语 阅读(8) 评论(0) 推荐(0)
摘要: task1_1.c 1 #include <stdio.h> 2 #include<stdlib.h> 3 int main() 4 { 5 printf(" 0 \n"); 6 printf("<H>\n"); 7 printf("I I\n"); 8 printf(" 0 \n"); 9 pri 阅读全文
posted @ 2025-03-05 16:57 闫芊语 阅读(37) 评论(0) 推荐(0)