2026年6月23日
摘要: 实验内容 实验任务1 源代码 // 文件读写操作:格式化读、写文本文件 #include <stdio.h> #define N 80 #define M 100 typedef struct { char name[N]; // 书名 char author[N]; // 作者 } Book; v 阅读全文
posted @ 2026-06-23 20:26 suuus 阅读(5) 评论(0) 推荐(0)
  2026年6月14日
摘要: 实验内容 实验任务1 源代码 #define _CRT_SECURE_NO_WARNINGS // P286例8.17 // 对教材示例代码作了微调,把输出学生信息设计成函数模块 // 打印不及格学生信息、打印所有学生信息均调用该模块实现 #include <stdio.h> #include <s 阅读全文
posted @ 2026-06-14 23:13 suuus 阅读(4) 评论(0) 推荐(0)
  2026年5月31日
摘要: 实验内容 实验任务1 源代码 #include <stdio.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], int n, int *pmin, in 阅读全文
posted @ 2026-05-31 21:15 suuus 阅读(12) 评论(0) 推荐(0)
  2026年5月2日
摘要: 实验内容 实验任务1 源代码 #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; // 输出数组x占用的内存字节数 printf("sizeof(x) = %d\n", s 阅读全文
posted @ 2026-05-02 22:00 suuus 阅读(26) 评论(2) 推荐(1)
  2026年4月16日
摘要: 实验内容 实验任务1 源代码 #include<stdio.h> #include<stdlib.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &sco 阅读全文
posted @ 2026-04-16 13:30 suuus 阅读(16) 评论(0) 推荐(0)
  2026年4月3日
摘要: 实验内容 实验任务1 源代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int number; int i; srand(time(0)); for (i = 0; i < N; 阅读全文
posted @ 2026-04-03 18:27 suuus 阅读(11) 评论(0) 推荐(0)
  2026年3月19日
摘要: 实验结论 任务一 源代码 #include <stdio.h> #include <stdlib.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); system("pause"); return 0; } #incl 阅读全文
posted @ 2026-03-19 22:24 suuus 阅读(15) 评论(0) 推荐(0)