摘要: 四、实验结论 4.实验任务4 task4.c源码及运行结果截图: 1 #define _CRT_SECURE_NO_WARNINGS 2 3 #include <stdio.h> 4 #include <ctype.h> 5 6 void count_file_stats(const char* f 阅读全文
posted @ 2025-06-09 10:26 DelPaulo 阅读(8) 评论(0) 推荐(0)
摘要: 4、实验任务4 task4.c源码及运行结果截图: 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]; 阅读全文
posted @ 2025-05-29 08:32 DelPaulo 阅读(5) 评论(0) 推荐(0)
摘要: 1、实验任务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(in 阅读全文
posted @ 2025-05-18 18:36 DelPaulo 阅读(15) 评论(0) 推荐(0)
摘要: 1、实验任务1 task1源代码及运行结果截图: 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占用的内存字节 阅读全文
posted @ 2025-04-20 13:05 DelPaulo 阅读(7) 评论(0) 推荐(0)
摘要: 1、实验任务1 task1源代码及运行结果截图: 1 #include <stdio.h> 2 3 char score_to_grade(int score); // 函数声明 4 5 int main() { 6 int score; 7 char grade; 8 9 while (scanf 阅读全文
posted @ 2025-04-06 17:28 DelPaulo 阅读(11) 评论(0) 推荐(0)
摘要: 1、实验任务1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 7 int main() { 8 int number; 9 int i; 10 11 srand(time(0)); / 阅读全文
posted @ 2025-03-23 13:21 DelPaulo 阅读(13) 评论(0) 推荐(0)
摘要: #include <stdio.h> int main() { printf(" 0 0\n"); printf("<H> <H>\n"); printf("I I I I\n"); return 0; } #include <stdio.h> int main() { double a, b, c 阅读全文
posted @ 2025-03-09 21:58 DelPaulo 阅读(15) 评论(0) 推荐(0)