數據結構 線性表 輸入一數插入到有序表中,是生成的線性表任然有序

有序線性表從大到小排列,西安插入一個數,插入後的線性表依然是有序線性表。數組 代碼以下:code #include <stdio.h> #include <stdlib.h> #define Max 100 // 定義數組的最大長度 typedef int Datatype; // 定義數組元素的數據類型 typedef struct { Datatype data[Max];
相關文章
相關標籤/搜索