摘要: 4 `#include<stdio.h> int main(){ FILE *fp; char ch; int count=0; fp=fopen("d:\data4.txt","r"); if(fp==NULL){ printf("fail to open file\n"); return 0; 阅读全文
posted @ 2024-06-24 11:20 _FuBuki 阅读(18) 评论(0) 推荐(0)
摘要: 1 `#include<stdio.h> include<string.h> define N 3 typedef struct student{ int id; char name[20]; char subject[20]; double perf; double mid; double fin 阅读全文
posted @ 2024-06-08 09:52 _FuBuki 阅读(33) 评论(0) 推荐(0)
摘要: task1_1 `#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 阅读全文
posted @ 2024-05-26 22:18 _FuBuki 阅读(28) 评论(0) 推荐(0)
摘要: task1_1 task1_2 task2 task3_1 task3_2 task4 `#include <stdio.h> define N 100 void dec_to_n(int x, int n); // 函数声明 int main() { int x; printf("输入一个十进制整 阅读全文
posted @ 2024-05-19 17:54 _FuBuki 阅读(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[]); // 函数声明 void 阅读全文
posted @ 2024-04-28 22:12 _FuBuki 阅读(8) 评论(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 < 阅读全文
posted @ 2024-04-14 20:57 _FuBuki 阅读(9) 评论(0) 推荐(0)
摘要: `#include <stdio.h> include <stdlib.h> int main() { printf(" O\n"); printf("\n"); printf("I I\n"); system("pause"); return 0; }` `#include <stdio.h> i 阅读全文
posted @ 2024-03-16 22:17 _FuBuki 阅读(12) 评论(0) 推荐(0)
摘要: `#include<stdio.h> include<stdlib.h> include<math.h> int main() { int a,b,c; double s,area; while(scanf("%d%d%d",&a,&b,&c)!=EOF) { s=(a+b+c)/2; area=s 阅读全文
posted @ 2024-03-16 22:07 _FuBuki 阅读(23) 评论(0) 推荐(0)
摘要: `#include <stdio.h> include<stdlib.h> int main(){ float f,c; while (scanf("%f",&c)!=EOF) { f=9.0/5.0*c+32; printf("摄氏度c=%.2f时,华氏度f=%.2f\n",c,f); } sys 阅读全文
posted @ 2024-03-16 22:06 _FuBuki 阅读(26) 评论(0) 推荐(0)
摘要: `#include <stdio.h> include <math.h> include <stdlib.h> int main() { double x, ans; while(scanf("%lf", &x) != EOF) { ans = pow(x, 365 ); printf("%.2f的 阅读全文
posted @ 2024-03-16 22:06 _FuBuki 阅读(7) 评论(0) 推荐(0)