散列表源码

摘要: #include "Onelink.h" //单链表类 class HashTable //拉链法的哈希表类 { public: OnelinkNode *table; //指向哈希表数组的指针 int size; //哈希表的数组容量 HashTable(int n); //构造函数,分配哈希表的存储单元 ~HashTable(); ... 阅读全文
posted @ 2012-12-22 10:22 duanzeyang 阅读(209) 评论(0) 推荐(0)

CString路径获取文件名

摘要: intnPos=inPutFilename.ReverseFind('\\');CStringfileName=inPutFilename.Right(inPutFilename.GetLength()-nPos-1);fileName就是文件名0015.txtnPos=fileName.ReverseFindFind('.');fileName=fileName.Left(fileName.GetLength()-nPos-1);fileName就是文件名0015 阅读全文
posted @ 2012-12-20 20:31 duanzeyang 阅读(1409) 评论(0) 推荐(1)