摘要: 实验任务4 #define _CRT_SECURE_NO_WARNINGS #include<stdlib.h> #include<stdio.h> int main() { char ch; int count = 0; FILE* fp; fp = fopen("data4.txt", "r") 阅读全文
posted @ 2022-12-27 15:09 光逸 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 实验任务1 1.源代码 #include <stdio.h> #include <string.h> #define N 3 typedef struct student { int id; // 学号 char name[20]; // 姓名 char subject[20]; // 考试科目 d 阅读全文
posted @ 2022-12-26 16:28 光逸 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 实验任务1 源代码 #include<stdio.h> #define N 4 int main() { int a[N] = { 1,9,8,4 }; char b[N] = { '1','9','8','4' }; int i; printf("sizeof(int)=%d\n", sizeof 阅读全文
posted @ 2022-11-23 20:32 光逸 阅读(8) 评论(0) 推荐(0) 编辑
摘要: task1 源代码 #include<stdio.h> #include<stdlib.h> #include<time.h> #include<windows.h> #define N 80 void print_text(int line, int col, char text[]); void 阅读全文
posted @ 2022-11-05 19:21 光逸 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 实验任务-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; ++i) { 阅读全文
posted @ 2022-10-23 09:27 光逸 阅读(6) 评论(0) 推荐(0) 编辑