#define InitSize 100
#define LISTINCREMENT 10
typedef struct{
ElemType *elem;
int listsize;
int length;
}SqList;
bool Delete_Same(SqList &L)
{
if(L.length == 0)
return false;
int i,j;
for(i = 0,j = 1;j < L.length;j++)
if(L.data[i]!=L.data[j])
L.data[++i] = L.data[j];
L.length = i+1;
return true;
}