for (i = 1;i < len-1;i++) { a[i] = a[i+1]; }len是数组的长度,这样做数组的最后一个元素没变
for( int i = 1 ; i < max_length ; i++){ array[i] = array[i + 1];}