摘要: #include<stdio.h> #define N 4 int main() { int x[N]={1,9,8,4}; int i; int *p; p=x; for(i=0;i<N;++i) printf("%d",*(p+i)); printf("\n"); return 0; } #in 阅读全文
posted @ 2022-06-14 09:11 谢运麒 阅读(23) 评论(3) 推荐(0)
摘要: #include<stdio.h> #define N 5 #define M 80 typedef struct { char name[M]; char author[M]; }Book; int main() { Book x[N]={{"一九八四","乔治.奥威尔"}, {"美丽新世界"," 阅读全文
posted @ 2022-06-13 18:45 谢运麒 阅读(14) 评论(3) 推荐(0)
摘要: #include<stdio.h> #define N 4 int main() { int a[N]={2,0,2,2}; char b[N]={'2','0','2','2'}; int i; printf("sizeof(int)=%d\n",sizeof(int)); printf("siz 阅读全文
posted @ 2022-05-09 21:57 谢运麒 阅读(23) 评论(3) 推荐(0)
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h> #include<windows.h> #define N 80 void printText(int line,int col,char text[]); void printSpaces( 阅读全文
posted @ 2022-04-25 20:52 谢运麒 阅读(23) 评论(3) 推荐(0)
摘要: #include<stdio.h> #include<stdlib.h> #define N 3 int main() { int i,n,k; srand(time(0)); printf("猜猜2022年4月哪一天会是你的lucky day\n"); k=rand()%29+1; printf( 阅读全文
posted @ 2022-04-18 17:59 谢运麒 阅读(29) 评论(3) 推荐(0)
摘要: #include<stdio.h> int main() { int i;int n=2; for(i=1;i<=n;i++) { printf(" o \n"); printf("<H>\n"); printf("I I\n"); printf("\n"); } return 0; } #incl 阅读全文
posted @ 2022-03-27 12:30 谢运麒 阅读(18) 评论(3) 推荐(0)