摘要: #include <stdio.h> int main() { FILE *fp; fp = fopen("data4.txt","r"); char ch; int count = 0; do { ch = fgetc(fp); if(ch >= 33 && ch <= 126) count++; 阅读全文
posted @ 2022-12-27 20:21 此木223 阅读(9) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <string.h> #define N 3 typedef struct student { int id; char name[20]; char subject[20]; double perf; double mid; double f 阅读全文
posted @ 2022-12-27 13:24 此木223 阅读(19) 评论(0) 推荐(0) 编辑
摘要: #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; printf("sizeof(int)=%d\n", 阅读全文
posted @ 2022-11-29 11:07 此木223 阅读(7) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h> #include<windows.h> #define N 80 void print_test(int line, int col, char test[]); void print_spa 阅读全文
posted @ 2022-11-08 20:04 此木223 阅读(11) 评论(0) 推荐(0) 编辑
摘要: test 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) { number=ra 阅读全文
posted @ 2022-10-24 14:57 此木223 阅读(14) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<stdlib.h> int main() { printf(" o\n"); printf("<H>\n"); printf("I I\n"); return 0; } #include<stdio.h> #include<stdlib.h> i 阅读全文
posted @ 2022-10-16 12:50 此木223 阅读(11) 评论(0) 推荐(0) 编辑