标签:member ber oid class let 个数 数组 size delete
#include<stdio.h>
int
tab[10]={0,1,2,3,5,5,5,7,7,9};
void
deleteMember(
int
mem){
int
i = 0;
int
j = 0;
for
(i = 0, j = 0; i < (
sizeof
(tab)/
sizeof
(
int
)); i++){
if
(tab[i] != mem){
tab[j++] = tab[i]
}
}
for
(i = 0; i < (
sizeof
(tab)/
sizeof
(
int
))-j; i++){
tab[j+i] = 0;
}
}
标签:member ber oid class let 个数 数组 size delete
原文地址:http://www.cnblogs.com/emptyYPen/p/6914298.html