摘要: #include <stdio.h> #include <string.h> #include <stdlib.h> int main() { int cnt=0; char c; FILE *fp; fp=fopen("data4.txt","r"); while(!feof(fp)) { c=f 阅读全文
posted @ 2024-06-21 17:46 Gaviel_Lee 阅读(18) 评论(0) 推荐(0)
摘要: #define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 #include<stdlib.h> typedef struct student { int id; // 学号 char name[20]; // 姓名 char subject[20]; // 考试科目 doub 阅读全文
posted @ 2024-06-09 16:55 Gaviel_Lee 阅读(43) 评论(0) 推荐(0)
摘要: #include <stdio.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], int n, int *pmin, int *pmax); int m 阅读全文
posted @ 2024-05-26 18:12 Gaviel_Lee 阅读(27) 评论(0) 推荐(0)
摘要: #include <stdio.h> #define N 4 void test1() { int a[N] = {1, 9, 8, 4}; int i; printf("sizeof(a) = %d\n", sizeof(a)); for (i = 0; i < N; ++i) printf("% 阅读全文
posted @ 2024-05-19 20:21 Gaviel_Lee 阅读(18) 评论(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[]); void print 阅读全文
posted @ 2024-04-27 22:25 Gaviel_Lee 阅读(21) 评论(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 = 阅读全文
posted @ 2024-04-14 22:38 Gaviel_Lee 阅读(21) 评论(0) 推荐(0)
摘要: 1 #include<stdio.h> using namespace std; int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0; } 2 #include <stdio.h> using namesp 阅读全文
posted @ 2024-03-12 21:47 Gaviel_Lee 阅读(59) 评论(0) 推荐(0)