摘要: #include<stdio.h> #define _CRT_SECURE_NO_WARNINGS #include<stdlib.h> int main(){ char ch; int count=0; FILE *fp; fp=fopen("data4.txt","r"); if(fp==NUL 阅读全文
posted @ 2022-12-27 20:32 睡不够 阅读(8) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <string.h> #define N 5 typedef struct student { char name[10]; int num; int maths; int com 阅读全文
posted @ 2022-12-27 19:19 睡不够 阅读(6) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS #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("siz 阅读全文
posted @ 2022-11-28 21:57 睡不够 阅读(7) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[]); // 函数声明 vo 阅读全文
posted @ 2022-11-08 20:44 睡不够 阅读(4) 评论(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=rand()%50 阅读全文
posted @ 2022-10-25 22:47 睡不够 阅读(16) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<stdlib.h> int main() { printf(" 0\n"); printf("<H>\n"); printf("I I\n"); printf(" 0\n"); printf("<H>\n"); printf("I I\n"); 阅读全文
posted @ 2022-10-18 10:21 睡不够 阅读(30) 评论(0) 推荐(0) 编辑