- 博客(1)
- 收藏
- 关注
原创 //while循环在排序好的一维数组中插入一个数 ,例如在【3,7,8,9,12,15】中插入
//while循环在排序好的一维数组中插入一个数 ,例如在【3,7,8,9,12,15】中插入 //while #include<stdio.h> main() { int index;//定义一个整型变量,存放插入位置 int a[20]= {3,7,8,9,12,15}; int n=6; int i,x; printf("请输入插入的数:"); scanf("%d",&x); //先后移 i=n-1;//末端 while(a[i]>x&&.
2022-02-26 14:33:05 336
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人