标签:
//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); }
标签:
原文地址:http://www.cnblogs.com/gabygoole/p/4640772.html