//Lazy delete void LazyDelete( List L ) { Position p; p = L; while( p->Next != NULL ) { if( p->Next->judg == 1 ) Delete( p ); else p = p->Next; } } void Delete( Position p ) { Position TmpCell; TmpCell = p->next; p->Next = TmpCell->Next; free(TmpCell); }