4-3 求鏈式表的表長 (10分)

本題要求實現一個函數,求鏈式表的表長。c++ 函數接口定義: int Length( List L ); 其中List結構定義以下:函數 typedef struct LNode *PtrToLNode; struct LNode { ElementType Data; PtrToLNode Next; }; typedef PtrToLNode List; L是給定單鏈表,函數Length要返回
相關文章
相關標籤/搜索