摘要:   //迷宫问题 #include <iostream> #include <fstream> #include <string> #include <vector> #define mazefile "maze.txt"   using namespace std; class Escape ... 阅读全文
posted @ 2009-11-18 21:27 leukotrichia 阅读(389) 评论(0) 推荐(0)
摘要:     //生成N个介于0~(M-1)之间的 不重复的整数,按升序排列,用二分查找找到某个数字的位置并输出查找次数 #include <iostream> #include <ctime> #include <queue> #define M 10000 #define N 5000 //N必须小于等于M int Count; ... 阅读全文
posted @ 2009-11-18 17:00 leukotrichia 阅读(423) 评论(0) 推荐(0)