摘要: 实验四 #include<stdio.h> #include<ctype.h> int main(){ FILE *fp; fp=fopen("data4.txt","r"); if(fp==NULL){ printf("打不开,有问题 \n"); return 1; } int line=0,ch 阅读全文
posted @ 2025-06-09 11:03 MA2C 阅读(6) 评论(0) 推荐(0)
摘要: 实验4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 int 阅读全文
posted @ 2025-06-01 17:56 MA2C 阅读(8) 评论(0) 推荐(0)
摘要: https://home.cnblogs.com/u/MA2C 阅读全文
posted @ 2025-04-08 21:05 MA2C 阅读(11) 评论(0) 推荐(0)
摘要: 任务一 #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score_t 阅读全文
posted @ 2025-04-08 21:01 MA2C 阅读(6) 评论(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 @ 2025-03-23 20:33 MA2C 阅读(4) 评论(0) 推荐(0)
摘要: 实验1 #include<stdio.h> int main() { int x,y,i; i=0; printf("打印次数:"); scanf("%i",&x); printf("打印方向(0为竖,1为横向):"); scanf("%i",&y); if(y==0) { while(i<x) { 阅读全文
posted @ 2025-03-09 21:27 MA2C 阅读(5) 评论(0) 推荐(0)