int n[]={50,50,0,0,0,0,0,0};
int n[]={50,0,50,0,0,0,0,0};
int n[]={50,0,0,50,0,0,0,0};
int n[]={50,0,0,0,50,0,0,0};
……
int n[]={50,50,0,0,50,0,0,0};
假设我有这一系列的数组,我要使数组中的数字调整成相邻无间隔。该怎样实现啊?
...全文
1251打赏收藏
关于间隔的消除
int n[]={50,50,0,0,0,0,0,0}; int n[]={50,0,50,0,0,0,0,0}; int n[]={50,0,0,50,0,0,0,0}; int n[]={50,0,0,0,50,0,0,0}; …… int n[]={50,50,0,0,50,0,0,0}; 假设我有这一系列的数组,我要使数组中的数字调整成相邻无间隔。该怎样实现啊?