while 常见程序逻辑

1. 查找

List L;
Position P = L;
while (P && P->Element != Key) {
    P = P->Next;
}
return P;
原文地址:https://www.cnblogs.com/mtcnn/p/9423653.html