摘要: 1 #include <stdio.h> 2 int main() 3 { 4 FILE* fp; 5 int count=0; 6 char ch; 7 fp=fopen("date4.txt","r"); 8 if(fp==NULL) 9 { 10 printf("fail to open th 阅读全文
posted @ 2022-12-28 16:03 随风守 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <string.h> 3 #define N 3 4 typedef struct student 5 { 6 int id; 7 char name[20]; 8 char subject[20]; 9 double perf; 10 阅读全文
posted @ 2022-12-24 21:23 随风守 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 #include<stdio.h> 3 #define N 4 4 int main() 5 { 6 int i; 7 int a[N] = { 1,9,8,4 }; 8 char b[N] = { '1','9','8','4 阅读全文
posted @ 2022-11-27 19:37 随风守 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include <time.h> #include<windows.h> void print_spaces(int n); void print_blank_ 阅读全文
posted @ 2022-11-06 22:29 随风守 阅读(13) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h> #include<stdlib.h> #define N 5 int main() { int number,i; srand(time(0)); for(i=0;i<N;++i) { num 阅读全文
posted @ 2022-10-23 23:04 随风守 阅读(9) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); printf("\n"); pri 阅读全文
posted @ 2022-10-13 23:18 随风守 阅读(58) 评论(0) 推荐(0) 编辑