摘要: 实验6 #include<stdio.h> #include<stdlib.h> int main() { char a[2][100]={"nuist2022-nuist2023","FIFA World Cup 2022"}; FILE *fp; int i,n=0; char ch; fp=f 阅读全文
posted @ 2022-12-26 19:36 Mryaj 阅读(7) 评论(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; doub 阅读全文
posted @ 2022-12-23 13:52 Mryaj 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 实验1 #include<stdio.h> #define N 4 int main() { int a[N] = { 1,9,8,4 }; char b[N] = { '1','9','8','4' }; int i; printf("sizeof(int)=%d\n", sizeof(int)) 阅读全文
posted @ 2022-11-28 20:55 Mryaj 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 实验1 #include<stdio.h> #include<stdlib.h> #include<time.h> #include<windows.h> #define N 80 void print_test(int line, int col, char test[]); void print 阅读全文
posted @ 2022-11-08 10:58 Mryaj 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 实验1 #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 < N; ++i) { number 阅读全文
posted @ 2022-10-24 21:18 Mryaj 阅读(4) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int main() { printf(" O\n"); printf("<H>\n"); printf("I I\n"); printf(" O\n"); printf("<H>\n"); printf("I I\n"); return 0; } #includ 阅读全文
posted @ 2022-10-15 13:42 Mryaj 阅读(4) 评论(0) 推荐(0) 编辑