摘要: #include "stdio.h" #include "stdlib.h" #include "time.h" #define N 1024 void main() { int a[N]={0}; for (int i=0;i<N;i++) { a[i]=i; printf("%-6d",a[i] 阅读全文
posted @ 2021-10-07 22:01 admrty 阅读(29) 评论(0) 推荐(0)
摘要: #include "stdio.h" #include "stdlib.h" #include "time.h" #define N 100 void main() { int a[N]={0}; time_t ts; srand(unsigned int(time(&ts))); for (int 阅读全文
posted @ 2021-10-07 21:11 admrty 阅读(41) 评论(0) 推荐(0)
摘要: #include "stdio.h" #include "stdlib.h" #include "time.h" void main() { int a[10]={0}; time_t ts; srand(unsigned int(time(&ts))); for (int i=0;i<10;i++ 阅读全文
posted @ 2021-10-07 17:59 admrty 阅读(22) 评论(0) 推荐(0)
摘要: #include "stdio.h" #include "stdlib.h" //二维数组的初始化 #define N 10 void mainx() { int a[3][4]={0}; for (int i=0;i<3;i++) { for (int j=0;j<4;j++) { a[i][j] 阅读全文
posted @ 2021-10-07 13:06 admrty 阅读(273) 评论(0) 推荐(0)