摘要: task4 #include<stdio.h> #include<stdlib.h> #include <string.h> int main(){ int i,v; char d[100][100]; FILE *fp; i=0; v=0; fp=fopen("d:\\data4.txt","r" 阅读全文
posted @ 2025-06-06 20:48 提拉米苏ac 阅读(16) 评论(0) 推荐(0)
摘要: task4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 i 阅读全文
posted @ 2025-05-28 22:43 提拉米苏ac 阅读(23) 评论(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 *pmax 阅读全文
posted @ 2025-05-15 20:46 提拉米苏ac 阅读(30) 评论(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-17 22:08 提拉米苏ac 阅读(23) 评论(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 21:06 提拉米苏ac 阅读(22) 评论(0) 推荐(0)
摘要: task.1 #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) { n 阅读全文
posted @ 2025-03-21 00:12 提拉米苏ac 阅读(11) 评论(0) 推荐(0)
摘要: task1_1.c #include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0; } task1_2.c #include <stdio.h> int main() { pri 阅读全文
posted @ 2025-03-05 20:24 提拉米苏ac 阅读(22) 评论(0) 推荐(0)