摘要: #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-23 22:29 王广诚 阅读(13) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <string.h> #define N 10 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; // 阅读全文
posted @ 2022-12-23 22:22 王广诚 阅读(11) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS 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(" 阅读全文
posted @ 2022-12-05 13:52 王广诚 阅读(13) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<stdlib.h> #include<time.h> #include<windows.h> #define N 80 void print_text(int line, int 阅读全文
posted @ 2022-11-06 17:05 王广诚 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include <math.h> #include <time.h> #define N 5 int main() { int number; int i; srand(time(0)); for(i=0;i<N;++i) { number =rand()%500 阅读全文
posted @ 2022-10-22 16:14 王广诚 阅读(7) 评论(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 21:05 王广诚 阅读(6) 评论(0) 推荐(0) 编辑