摘要: task1_1.c 1 #include<stdio.h> 2 #define N 4 3 4 int main() 5 { 6 int x[N]={1,9,8,4}; 7 int i; 8 int *p; 9 10 p=x; 11 for(i=0;i<N;++i) 12 printf("%d",* 阅读全文
posted @ 2022-06-13 21:16 yuki丶丶 阅读(56) 评论(3) 推荐(0)
摘要: task1_1.c 1 #include<stdio.h> 2 #define N 5 3 #define M 80 4 5 typedef struct 6 { 7 char name[M]; 8 char author[M]; 9 } Book; 10 11 int main() 12 { 13 阅读全文
posted @ 2022-06-05 11:58 yuki丶丶 阅读(43) 评论(2) 推荐(0)
摘要: task1_1 1 #include<stdio.h> 2 #define N 4 3 4 int main() 5 { 6 int a[N]={2,0,2,2}; 7 char b[N]={'2','0','2','2'}; 8 int i; 9 10 printf("sizeof(int)=%d 阅读全文
posted @ 2022-05-06 17:22 yuki丶丶 阅读(40) 评论(2) 推荐(0)
摘要: 1.task1 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 #include<windows.h> 5 #define N 80 6 7 void printText(int line,int col,char text 阅读全文
posted @ 2022-04-19 23:26 yuki丶丶 阅读(63) 评论(3) 推荐(0)
摘要: 1.task1.c 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 5 #define N 5 6 7 int main() 8 { 9 int grade,number; 10 int i; 11 12 srand(tim 阅读全文
posted @ 2022-04-12 22:26 yuki丶丶 阅读(80) 评论(1) 推荐(0)
摘要: //task1_1 1 #include<stdio.h> 2 int main() 3 { 4 int i;int n=2; 5 for(i=1;i<=n;i++) 6 { 7 printf(" o \n"); 8 printf("<H>\n"); 9 printf("I I\n"); 10 pr 阅读全文
posted @ 2022-03-25 13:53 yuki丶丶 阅读(68) 评论(5) 推荐(0)