摘要: 任务4 #include<stdio.h> #include<stdlib.h> int main(){ FILE *fp; int count=0; fp=fopen("data4.txt","r"); if(fp==NULL){ printf("fail to open the file"); 阅读全文
posted @ 2022-12-30 15:11 疙瘩宝 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 任务1 #include <stdio.h> #include <string.h> #define N 3 typedef struct student { int id; char name[20]; char subject[20]; double perf; double mid; doub 阅读全文
posted @ 2022-12-27 22:10 疙瘩宝 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 任务1 #include<stdio.h> #define N 2 #define M 4 int main() { int a[N][M] = { {1,9,8,4},{2,0,2,2} }; char b[N][M] = { {'1','9','8','4'},{'2','0','2','2'} 阅读全文
posted @ 2022-11-29 22:36 疙瘩宝 阅读(44) 评论(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 pri 阅读全文
posted @ 2022-11-08 22:02 疙瘩宝 阅读(2) 评论(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 阅读全文
posted @ 2022-10-24 22:58 疙瘩宝 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 任务1 #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; } 阅读全文
posted @ 2022-10-16 22:20 疙瘩宝 阅读(66) 评论(0) 推荐(0) 编辑