摘要: task1 #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 21:32 傲芙 阅读(6) 评论(0) 推荐(0) 编辑
摘要: task1 //打印不及格学生信息和所有学生信息程分别调用 #include<stdio.h> #include<string.h> #define N 3 typedef struct student { int id; char name[20]; char subject[20]; doubl 阅读全文
posted @ 2023-05-27 22:19 傲芙 阅读(12) 评论(0) 推荐(0) 编辑
摘要: task1.1 #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( 阅读全文
posted @ 2023-05-06 15:20 傲芙 阅读(26) 评论(0) 推荐(0) 编辑
摘要: task1_1 #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(int)); 阅读全文
posted @ 2023-04-15 21:18 傲芙 阅读(20) 评论(0) 推荐(0) 编辑
摘要: task1 #include<stdio.h> #include<stdlib.h> #include<time.h> #include<windows.h> #define N 80 void printf_text(int line,int col,char text[]); void prin 阅读全文
posted @ 2023-04-01 16:02 傲芙 阅读(19) 评论(0) 推荐(0) 编辑
摘要: task1 #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-18 21:29 傲芙 阅读(20) 评论(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 阅读全文
posted @ 2023-03-04 12:12 傲芙 阅读(38) 评论(0) 推荐(0) 编辑