摘要: #include <stdio.h> #include <string.h> #define N 5 #define M 80 int main() { char songs[N][M]; FILE* fp; fp = fopen("data1.txt", "r"); if (fp == NULL) 阅读全文
posted @ 2023-12-19 12:11 ACAねの狗 阅读(10) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <string.h> #define N 10 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; // 学号 char name[20]; // 姓名 char subj 阅读全文
posted @ 2023-12-14 23:29 ACAねの狗 阅读(10) 评论(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 main 阅读全文
posted @ 2023-11-28 10:40 ACAねの狗 阅读(23) 评论(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("%p 阅读全文
posted @ 2023-11-17 21:03 ACAねの狗 阅读(11) 评论(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 @ 2023-10-31 14:29 ACAねの狗 阅读(13) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 #define N1 374 #define N2 465 int main() { int number; int i; srand(time(0)); for (i 阅读全文
posted @ 2023-10-17 10:26 ACAねの狗 阅读(25) 评论(0) 推荐(0)
摘要: #include <stdio.h> int main() { printf(" 0\n"); printf("<H>\n"); printf("I I\n"); return 0; } #include <stdio.h> int main() { float a, b, c; scanf("%f 阅读全文
posted @ 2023-10-02 15:19 ACAねの狗 阅读(14) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <math.h> int main() { double x, ans; while(scanf("%lf", &x) != EOF) { ans = pow(x, 365); printf("%.2f的365次方: %.2f\n", x, a 阅读全文
posted @ 2023-10-02 15:04 ACAねの狗 阅读(7) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <math.h> int main() { double a, b, c, s, area; while(scanf("%lf", &a) != EOF&&scanf("%lf", &b) != EOF&&scanf("%lf", &c) != 阅读全文
posted @ 2023-10-02 14:59 ACAねの狗 阅读(9) 评论(0) 推荐(0)
摘要: #include <stdio.h> int main() { double x, ans; while(scanf("%lf", &x) != EOF){ ans=x*9.0/5.0+32; printf("ÉãÊ϶Èc=%.2f",x); printf("£¬"); printf("»ªÊ϶ 阅读全文
posted @ 2023-10-02 14:41 ACAねの狗 阅读(8) 评论(0) 推荐(0)