[PTA] 数据结构与算法题目集 6-3 求链式表的表长

Length( List L ){
    int res=0;
    while(L!=NULL){
        res++;
        L=L->Next;
    }
    return res;
}

猜你喜欢

转载自www.cnblogs.com/ruoh3kou/p/9976114.html