摘要: task4 #include<stdio.h> #include<stdlib.h> int main(){ FILE *fp; char al; int count=0; fp=fopen("C:\\data4.txt","r"); if(fp==NULL){ printf("fail to op 阅读全文
posted @ 2022-12-25 14:02 梁紫娟 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 实验任务三 task3.c #include <stdio.h> #include<string.h> #include<stdlib.h> #define N 100 typedef struct { char num[10]; // 学号 int s1; // 期末成绩 int s2; // 平 阅读全文
posted @ 2022-12-21 12:52 梁紫娟 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 实验任务一 task1_1.c #include <stdio.h> #include <stdlib.h> #define N 4 int main() { int a[N] = {1, 9, 8, 4}; char b[N] = {'1', '9', '8', '4'}; int i; prin 阅读全文
posted @ 2022-11-23 15:40 梁紫娟 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 实验任务一 task1.c #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 01:14 梁紫娟 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 实验任务一 //task1.c #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-20 00:09 梁紫娟 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 实验任务一 //实验任务一 #include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0; } task1_1.c //实验任务一 //task1_1.c #include <s 阅读全文
posted @ 2022-10-13 23:59 梁紫娟 阅读(28) 评论(0) 推荐(0) 编辑