2025年6月9日

摘要: task4 #define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <stdlib.h> int main() { FILE* fp; int lineCount = 0; int charCount = 0; char ch; fp = 阅读全文
posted @ 2025-06-09 12:25 EMPEEROR 阅读(9) 评论(0) 推荐(0)

2025年6月2日

摘要: task4 #include <stdio.h>#define N 10typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 int 阅读全文
posted @ 2025-06-02 22:51 EMPEEROR 阅读(10) 评论(0) 推荐(0)

2025年4月20日

摘要: task1 #include <stdio.h>#define N 4#define M 2void test1() { int x[N] = { 1, 9, 8, 4 }; int i; // 输出数组x占用的内存字节数 printf("sizeof(x) = %d\n", sizeof(x)); 阅读全文
posted @ 2025-04-20 21:29 EMPEEROR 阅读(12) 评论(0) 推荐(0)

2025年4月8日

摘要: 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-08 20:22 EMPEEROR 阅读(14) 评论(0) 推荐(0)

2025年3月19日

摘要: task1 #include <stdio.h>#include <stdlib.h>#include <time.h>#define N 5int main() { int number; int i; srand(time(0)); // 以当前系统时间作为随机种子 for (i = 0; i 阅读全文
posted @ 2025-03-19 23:44 EMPEEROR 阅读(14) 评论(0) 推荐(0)

2025年3月5日

摘要: task1 #include <stdio.h>int main(){ printf(" O \n"); printf("<H>\n"); printf("I I\n"); printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0;} t 阅读全文
posted @ 2025-03-05 18:32 EMPEEROR 阅读(9) 评论(0) 推荐(0)