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
閱讀(11)
推薦(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)
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)
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)
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)
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
閱讀(10)
推薦(0)