摘要: task4 1 #include<stdio.h> 2 #include<ctype.h> 3 4 int main(){ 5 int line=0,chars=0,ch; 6 FILE *fp; 7 8 fp=fopen("C:\\Users\\ZhuanZ(无密码)\\Desktop\\实验7数 阅读全文
posted @ 2025-12-25 21:29 李佳颖 阅读(6) 评论(1) 推荐(0)
摘要: task4 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define N 10 4 5 typedef struct { 6 char isbn[20]; 7 char name[80]; 8 char author[80]; 9 double sal 阅读全文
posted @ 2025-12-20 13:17 李佳颖 阅读(15) 评论(1) 推荐(0)
摘要: task1_1 1 #include <stdio.h> 2 #define N 5 3 #include<stdlib.h> 4 5 void input(int x[], int n); 6 void output(int x[], int n); 7 void find_min_max(int 阅读全文
posted @ 2025-12-09 20:25 李佳颖 阅读(16) 评论(1) 推荐(0)
摘要: 实验作业1 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 5 void test1(){ 6 int x[N]={1,9,8,4}; 7 int i; 8 9 printf("sizeof(x)=%d\n",sizeof(x)); 10 for 阅读全文
posted @ 2025-11-16 13:45 李佳颖 阅读(5) 评论(1) 推荐(0)
摘要: 实验作业1 1 #include<stdio.h> 2 3 char score_to_grade(int score); 4 5 int main(){ 6 int score; 7 char grade; 8 9 while(scanf("%d",&score)!=EOF){ 10 grade= 阅读全文
posted @ 2025-10-26 19:22 李佳颖 阅读(28) 评论(1) 推荐(0)
摘要: #include <stdio.h> #include<stdlib.h> #include<time.h> #define N 5 #define N1 80 #define N2 35 int main(){ int cnt; int random_major,random_no; srand( 阅读全文
posted @ 2025-10-14 19:40 李佳颖 阅读(16) 评论(1) 推荐(0)
摘要: //打印一个字符小人 #include<stdio.h> #include<stdlib.h> int main() { for (int i=0;i<2;i++){ printf(" 0 \n"); printf("<H>\n"); printf("I I\n"); if(i==0); { pri 阅读全文
posted @ 2025-09-26 19:25 李佳颖 阅读(18) 评论(1) 推荐(0)