摘要: task4 #include<stdio.h> #include<stdlib.h> int main(){ FILE *fp; char al; int count=0; fp=fopen("D://data4.txt","r"); if(fp==NULL){ printf("fail to op 阅读全文
posted @ 2022-12-24 21:27 莓& 阅读(12) 评论(0) 推荐(0) 编辑
摘要: task3#include <stdio.h> #include<string.h> #include<stdlib.h> #define N 100 typedef struct { char num[10]; // 学号 int s1; // 期末成绩 int s2; // 平时成绩 doubl 阅读全文
posted @ 2022-12-21 12:37 莓& 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 实验4task1-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", s 阅读全文
posted @ 2022-11-23 21:07 莓& 阅读(3) 评论(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 17:22 莓& 阅读(23) 评论(0) 推荐(0) 编辑
摘要: task1#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) { n 阅读全文
posted @ 2022-10-22 23:32 莓& 阅读(5) 评论(0) 推荐(0) 编辑
摘要: task5#include <stdio.h> int main() { int age1, age2; char gender1, gender2; scanf("%d%c%d%c", &age1, &gender1, &age2, &gender2); printf("age1 = %d, ge 阅读全文
posted @ 2022-10-16 18:51 莓& 阅读(26) 评论(0) 推荐(0) 编辑