摘要: task 4 #include<stdio.h> #include<string.h> int main() { FILE *fp; fp = fopen("data4.txt","r"); if(fp==NULL){ printf("fail to open file\n"); return 1; 阅读全文
posted @ 2023-12-21 15:14 Gustave-Ehsy 阅读(11) 评论(0) 推荐(0)
摘要: #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 fina 阅读全文
posted @ 2023-12-11 17:29 Gustave-Ehsy 阅读(5) 评论(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 @ 2023-11-27 17:29 Gustave-Ehsy 阅读(8) 评论(0) 推荐(0)
摘要: task1_1 1 #include<stdio.h> 2 #define N 4 3 4 void test1(){ 5 int a[N] = {1,9,8,4}; 6 int i; 7 printf("sieof(a) = %d\n",sizeof(a)); 8 9 for(i = 0;i<N; 阅读全文
posted @ 2023-11-13 17:29 Gustave-Ehsy 阅读(10) 评论(0) 推荐(0)
摘要: 实验1 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 #include<windows.h> 5 #define N 80 6 7 void print_text(int line, int col, char text[ 阅读全文
posted @ 2023-10-30 17:01 Gustave-Ehsy 阅读(1) 评论(0) 推荐(0)
摘要: 实验2-1 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 #include<math.h> 5 6 #define N 5 7 #define N1 374 8 #define N2 465 9 10 int main() 阅读全文
posted @ 2023-10-16 17:28 Gustave-Ehsy 阅读(4) 评论(0) 推荐(0)
摘要: 1 //打印一个小人 2 #include<stdio.h> 3 int main() 4 { 5 printf(" 0 \n"); 6 printf("<H>\n"); 7 printf("I I\n"); 8 return 0; 9 } 1 #include<stdio.h> 2 int mai 阅读全文
posted @ 2023-09-28 14:40 Gustave-Ehsy 阅读(5) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示