C语言数组怎么删除一个区间的所有元素答:(arr[i] >= s && arr[i] <= e) {}else {*p = arr[i];p++;}}return (p-arr);}void pt(int* arr, int n) {int i;for (i = 0; i < n; i++) {printf("%d ", arr[i]);}printf("\n");}int main(){ int arr[] = {1,2,3,4,5,6,7,8,9};pt(arr,...
编程, 给定排好数组, 输入一个数,若数组中有则删除这个数,无则输出...答:include<iostream>using namespace std;int find(int *A,int a,int low,int high){ if(high != low){ int mid=(high+low)/2; if(A[mid]==a) return mid; if(A[mid]>a) return find(A,a,low,mid); if(A[mid]<a) return find(A,a,mid+1,high); } else if(A[low...