2012年7月7日

CTianwangFile

摘要: 1 #ifndef _TIANWANG_FILE_H_031104_ 2 #define _TIANWANG_FILE_H_031104_ 3 4 #include "Tse.h" 5 #include "Url.h" 6 #include "Page.h" 7 #include "FileEngine.h" 8 9 class CTianwangFile : public CFileEngine10 {11 public:12 CTianwangFile(string str);13 CTianwangFile( 阅读全文

posted @ 2012-07-07 16:54 kakamilan 阅读(219) 评论(0) 推荐(0) 编辑

CLink4SEFile

摘要: 1 #ifndef _LINK4SE_FILE_H_031208_ 2 #define _LINK4SE_FILE_H_031208_ 3 4 #include "Tse.h" 5 #include "Url.h" 6 #include "Page.h" 7 #include "FileEngine.h" 8 9 class CLink4SEFile : public CFileEngine10 {11 public:12 CLink4SEFile(string str);13 CLink4SEFile();14 阅读全文

posted @ 2012-07-07 16:47 kakamilan 阅读(242) 评论(0) 推荐(0) 编辑

CIsamFile

摘要: 1 #ifndef _ISAM_FILE_H_031105_ 2 #define _ISAM_FILE_H_031105_ 3 4 #include "FileEngine.h" 5 6 class CIsamFile : public CFileEngine 7 { 8 public: 9 string m_sIndexFileName;10 FILE *fpDataFile;11 FILE *fpIdxFile;12 13 public:14 CIsamFile();15 CIsamFile(string str);16 CIsamFi... 阅读全文

posted @ 2012-07-07 16:37 kakamilan 阅读(190) 评论(0) 推荐(0) 编辑

CDatabaseEngine

摘要: 1 #ifndef _DATABASE_ENGINE_H_031104_ 2 #define _DATABASE_ENGINE_H_031104_ 3 4 #include "DataEngine.h" 5 6 class CDatabaseEngine : public CDataEngine 7 { 8 public: 9 CDatabaseEngine(string str);10 virtual ~CDatabaseEngine();11 12 int GetEngineType() { return DATABASE_ENGINE; }13 14 };1... 阅读全文

posted @ 2012-07-07 16:32 kakamilan 阅读(168) 评论(0) 推荐(0) 编辑

CFileEngine

摘要: 1 #ifndef _FILE_ENGINE_H_031104_ 2 #define _FILE_ENGINE_H_031104_ 3 4 #include "DataEngine.h" 5 6 enum fileengine_type 7 { 8 ISAM, 9 TIANWANG,10 LINK4SE11 };12 13 class CUrl;14 class CPage;15 16 struct file_arg17 {18 CUrl *pUrl;19 CPage *pPage;20 };21 22 class CFileEngine : pu... 阅读全文

posted @ 2012-07-07 16:27 kakamilan 阅读(149) 评论(0) 推荐(0) 编辑

CDataEngine

摘要: 1 #ifndef _DATA_ENGINE_H_031104 2 #define _DATA_ENGINE_H_031104 3 4 #include "Tse.h" 5 6 enum dataengine_type 7 { 8 FILE_ENGINE, 9 DATABASE_ENGINE10 };11 12 class CDataEngine13 {14 public:15 string m_str; // database engine ---connecting string16 // file engine ---file path & name... 阅读全文

posted @ 2012-07-07 16:21 kakamilan 阅读(148) 评论(0) 推荐(0) 编辑

topcoder&poj中学到的算法

摘要: 涉及到的算法涉及到的题目链接二分法548-div2-2拓扑排序550-div2-3http://www.cnblogs.com/kakamilan/archive/2012/07/23/2605636.html概率分析537-div2-3最小费用最大流537-div1-3http://www.cnblogs.com/kakamilan/archive/2012/08/17/2644315.htmlKMP算法http://www.cnblogs.com/kakamilan/archive/2012/10/14/2723248.htmlsg函数(nim博弈游戏)561-div1-2565-div1 阅读全文

posted @ 2012-07-07 00:30 kakamilan 阅读(226) 评论(0) 推荐(0) 编辑

SRM 548 DIV2

摘要: 本来早就该写的,一直拖到现在。第一题应该算是很水的题,就是数字的种类乘以某种数字出现的最大次数。http://community.topcoder.com/stat?c=problem_solution&rm=313611&rd=15170&pm=11985&cr=23038076第二题比赛期间没有想到,后来看来一下别人的,原来用二分法就可以搞定了 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <cstdlib> 5 阅读全文

posted @ 2012-07-07 00:25 kakamilan 阅读(244) 评论(0) 推荐(0) 编辑

导航