摘要: 实验任务1 程序源码 #include<stdio.h> #include<stdlib.h> #define N 7 #define M 80 typedef struct { char name[M]; char author[M]; }Book; int main(){ Book x[N] = 阅读全文
posted @ 2023-06-10 17:45 TE-AMO 阅读(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 mi 阅读全文
posted @ 2023-05-28 15:36 TE-AMO 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 实验五 实验任务1 程序源码 #include<stdio.h> #include<stdlib.h> #define N 4 int main(){ int x[N] = {1, 9, 8, 4}; int i; int *p; for (i = 0; i < N; ++i) printf("%d 阅读全文
posted @ 2023-05-07 14:31 TE-AMO 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 实验任务1 程序源码 #include<stdio.h> #include<stdlib.h> #define N 4 int main(){ int a[N] = {2, 0, 2, 3}; char b[N] = {'2', '0', '2', '3'}; int i; printf("size 阅读全文
posted @ 2023-04-16 17:59 TE-AMO 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 实验三 实验任务1 程序源码 #include<stdio.h> #include<stdlib.h> #include<time.h> #include<windows.h> #define N 80 void print_text(int line, int col, char text[]); 阅读全文
posted @ 2023-04-02 17:51 TE-AMO 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 实验任务1 程序源码 #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 #define R1 586 #define R2 701 int main() { int number; int i; srand( time 阅读全文
posted @ 2023-03-19 15:30 TE-AMO 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 实验任务1 程序源码 //打印一个字符小人 #include<stdio.h> #include<stdlib.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); printf(" O \n"); printf("<H 阅读全文
posted @ 2023-03-04 17:36 TE-AMO 阅读(12) 评论(0) 推荐(0) 编辑