摘要: #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"); return 0; } #include<s 阅读全文
posted @ 2022-06-13 21:54 YOASOBI 阅读(30) 评论(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-05 16:34 YOASOBI 阅读(24) 评论(4) 推荐(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-08 15:00 YOASOBI 阅读(18) 评论(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-24 22:14 YOASOBI 阅读(21) 评论(3) 推荐(0)
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 int main() { int grade,number; int i; srand(time(0)); for(i=0;i<N;++i) { grade=rand( 阅读全文
posted @ 2022-04-17 21:14 YOASOBI 阅读(20) 评论(3) 推荐(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 0; } #inc 阅读全文
posted @ 2022-03-27 12:46 YOASOBI 阅读(33) 评论(3) 推荐(0)