java中怎么在数组中去除某个数字?答:// 答案是太能了:不用集合一样办到:(ArryList集合底层就是这么弄的)// 方法很多种,软copy和硬copy,还有字符串桥接,随便举两种吧public class ArrayTest {public static void main(String[] args) {int a1[]={1,3,4,5,0,0,9,6,0,5,4,7,6,7,0,5};int a2[] = { 1, 0, 5,0...
c语言:如何在一个排序好的数组中删除一个数答:办法不至一个,比较直观的是找到要删除的元素后,将它后面的元素依次向前移动(拷贝)一位。举例代码如下://#include "stdafx.h"//If the vc++6.0, with this line.#include "stdio.h"int main(void){ int a[10]={1,2,3,4,5,6,7,8,9,10},i,j,x; printf("Enter a number...