實現折半查找的算法(數據結構)

輸出順序表(1,2,3,4,5,6,7,8,9,10)中採用折半查找的方法查找關鍵字9的過程 #include <stdio.h> #define MAXL 100 //定義表中最多記錄個數 typedef int KeyType; typedef char InfoType[10]; typedef struct { KeyType key; //K
相關文章
相關標籤/搜索