摘要: 任务4 1 #include <stdio.h> 2 3 void my_print() 4 { 5 FILE *fp; 6 fp = fopen("data4.txt", "r"); 7 char a; 8 9 if (fp == NULL) 10 { 11 printf("fail to ope 阅读全文
posted @ 2024-12-30 00:07 64rytr76d65 阅读(7) 评论(0) 推荐(0)
摘要: 任务4 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 sales_ 阅读全文
posted @ 2024-12-22 21:09 64rytr76d65 阅读(10) 评论(0) 推荐(0)
摘要: 任务1 task1_1.c 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, in 阅读全文
posted @ 2024-12-08 12:34 64rytr76d65 阅读(18) 评论(0) 推荐(0)
摘要: 任务1 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 5 void test1() { 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 9 // 输出数组x占用的内存字节数 10 printf("sizeof(x) 阅读全文
posted @ 2024-11-09 11:20 64rytr76d65 阅读(12) 评论(0) 推荐(0)
摘要: 任务1 1 #include <stdio.h> 2 char score_to_grade(int score); 3 int main() 4 { 5 int score; 6 char grade; 7 while(scanf("%d",&score) !=EOF){ 8 grade=scor 阅读全文
posted @ 2024-10-28 22:53 64rytr76d65 阅读(16) 评论(0) 推荐(0)
摘要: 任务1 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 #define N 5 5 #define N1 397 6 #define N2 476 7 #define N3 21 8 int main() 9 { 10 in 阅读全文
posted @ 2024-10-10 23:22 64rytr76d65 阅读(15) 评论(0) 推荐(0)
摘要: 任务1 #include<stdio.h> int main () { printf(" o\t o\n"); printf("<H>\t<H>\n"); printf("I I\tI I\n"); return 0; } #include<stdio.h> int main () { printf 阅读全文
posted @ 2024-09-28 16:41 64rytr76d65 阅读(9) 评论(0) 推荐(0)