摘要: 任务四 1 #include <stdio.h> 2 3 int main() 4 { 5 int line_count=1,char_count=0; 6 7 FILE *fp=fopen("data4.txt","r"); 8 9 while(!feof(fp)) 10 { 11 char ch 阅读全文
posted @ 2024-12-30 01:23 大红鞭炮炸鬼子 阅读(3) 评论(0) 推荐(0) 编辑
摘要: task4: 1 1 #include <stdio.h> 2 2 #define N 10 3 3 4 4 typedef struct { 5 5 char isbn[20]; // isbn号 6 6 char name[80]; // 书名 7 7 char author[80]; // 作 阅读全文
posted @ 2024-12-22 22:00 大红鞭炮炸鬼子 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 任务一 源代码一: 1 int main() { 2 int a[N]; 3 int min, max; 4 5 printf("录入%d个数据:\n", N); 6 input(a, N); 7 8 printf("数据是: \n"); 9 output(a, N); 10 11 printf(" 阅读全文
posted @ 2024-12-09 01:40 大红鞭炮炸鬼子 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 任务一 #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; printf("sizeof(x) = %d\n", sizeof(x)); for (i = 0; i < N 阅读全文
posted @ 2024-11-09 23:35 大红鞭炮炸鬼子 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 任务一: 1 #include <stdio.h> 2 char score_to_grade(int score); // 函数声明 3 int main() { 4 int score; 5 char grade; 6 while(scanf("%d", &score) != EOF) { 7 阅读全文
posted @ 2024-10-24 01:15 大红鞭炮炸鬼子 阅读(14) 评论(0) 推荐(0) 编辑
摘要: https://home.cnblogs.com/u/liujinyanyan 阅读全文
posted @ 2024-10-10 19:07 大红鞭炮炸鬼子 阅读(5) 评论(0) 推荐(0) 编辑
摘要: task 1: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 #define N1 397 7 #define N2 476 8 #define N3 21 9 10 int main 阅读全文
posted @ 2024-10-10 19:04 大红鞭炮炸鬼子 阅读(8) 评论(0) 推荐(0) 编辑