6-3 有序數組的插入 (20 point(s))

本題要求將任一給定元素插入從大到小排好序的數組中合適的位置,以保持結果依然有序。 函數接口定義: bool Insert( List L, ElementType X ); 其中List結構定義如下: typedef int Position; typedef struct LNode List; struct LNode { ElementType Data[MAXSIZE]; Position
相關文章
相關標籤/搜索