摘要: 实验任务1 task1_1 源代码 #include<stdio.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 16:53 玥下秋风 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 实验任务4 源代码 #include<stdio.h> #include<string.h> #define N 100 typedef struct{ char num[10]; int s1; int s2; double sum; char level[10]; }STU; int fun(S 阅读全文
posted @ 2023-05-31 00:09 玥下秋风 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 实验任务1 task1_1.c 源码 #include<stdio.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",x[i]); printf("\n"); for 阅读全文
posted @ 2023-05-05 22:25 玥下秋风 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 实验任务1 task_1.c 源代码 #include<stdio.h> #define N 4 int main(){ int a[N]={2,0,2,3}; char b[N]={'2','0','2','3'}; int i; printf("sizeof(int)=%d\n",sizeof( 阅读全文
posted @ 2023-04-19 23:47 玥下秋风 阅读(8) 评论(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-01 17:01 玥下秋风 阅读(18) 评论(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(0 阅读全文
posted @ 2023-03-19 11:16 玥下秋风 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 实验任务1 程序源码tast1_1.c #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 阅读全文
posted @ 2023-03-03 23:38 玥下秋风 阅读(13) 评论(0) 推荐(0) 编辑