摘要: 1 #include <iostream> 2 using namespace std; 3 typedef int KeyType; 4 5 /************************************************************************/ 6 /* 二分查找方法 (数组必需要是有序的) */ 7 /* a[]为待查找的数组,要求是有序的;n为数组的长度;k为查找的关键字 */ 8 /************************... 阅读全文
posted @ 2013-03-26 13:20 zhxiang 阅读(194) 评论(0) 推荐(0) 编辑