摘要:
1 #include <iostream> 2 using namespace std; 3 typedef int KeyType; 4 5 /************************************************************************/ 6 /* 二分查找方法 (数组必需要是有序的) */ 7 /* a[]为待查找的数组,要求是有序的;n为数组的长度;k为查找的关键字 */ 8 /************************... 阅读全文