摘要: 实验任务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-24 12:25 怕生的雷 阅读(90) 评论(0) 推荐(0)
摘要: 实验任务1 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <string.h> #define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; 阅读全文
posted @ 2022-12-24 12:07 怕生的雷 阅读(39) 评论(0) 推荐(0)
摘要: 实验任务1 task1_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) = 阅读全文
posted @ 2022-11-23 20:50 怕生的雷 阅读(46) 评论(0) 推荐(0)
摘要: 实验任务一 #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-03 20:18 怕生的雷 阅读(48) 评论(0) 推荐(0)
摘要: 实验任务一 #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){ number=rand 阅读全文
posted @ 2022-10-19 16:36 怕生的雷 阅读(83) 评论(0) 推荐(0)
摘要: 实验任务一 #include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); printf("\n"); printf(" O \n"); printf("<H>\n"); printf("I I\n 阅读全文
posted @ 2022-10-13 14:28 怕生的雷 阅读(92) 评论(0) 推荐(0)