摘要: #include using namespace std;templateclass CTopK{public: CTopK(); ~CTopK(); T* m_Data; int GetTopK(const char* sFile, int& nTop);private:... 阅读全文
posted @ 2015-11-04 17:04 mximo 阅读(170) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;void CreatHeap(int a[],int n,int h){ int i,j,flag; int temp; i = h; j = 2*i + 1; temp = a[i]; flag = 0;... 阅读全文
posted @ 2015-11-04 11:19 mximo 阅读(240) 评论(0) 推荐(0) 编辑