2018年6月11日

查找数据是否存在

摘要: #include<stdio.h>#include<stdlib.h>#include<time.h> void main(){ time_t ts; srand((unsigned int)time(&ts)); int a[10]; for (int i = 0; i < 10; i++) { 阅读全文

posted @ 2018-06-11 22:56 Mint-Tremor 阅读(79) 评论(0) 推荐(0) 编辑

随机生成数

摘要: #include<stdio.h>#include<stdlib.h>#include<time.h> void main(){ time_t ts; srand((unsigned int)time(&ts)); int a[10]; for (int i = 0; i < 10; i++) { 阅读全文

posted @ 2018-06-11 22:48 Mint-Tremor 阅读(81) 评论(0) 推荐(0) 编辑

一维数组

摘要: #include<stdio.h>#include<stdlib.h> void main1(){ int a[10]; printf("%d",sizeof(a)); for (int i = 9; i > -1; i--) { a[i] = i; printf("\n%d,%x",a[i],&a 阅读全文

posted @ 2018-06-11 22:47 Mint-Tremor 阅读(100) 评论(0) 推荐(0) 编辑

导航