摘要: #include #include using namespace std;class Product{public: virtual ~Product() {} virtual int Interface()=0;};class ConcreteProductA : public Pr... 阅读全文
posted @ 2014-12-06 06:49 stanley19861028 阅读(198) 评论(0) 推荐(0) 编辑
摘要: class Singleton{public: ~Singleton(); static Singleton* GetInstance();private: Singleton(); static Singleton* m_pInstance; static pthre... 阅读全文
posted @ 2014-12-05 10:16 stanley19861028 阅读(118) 评论(0) 推荐(0) 编辑
摘要: int main(int argc, char *argv[]){#define WINDOW_BG FL_BLACK#define WINDOW_WIDTH 640#define WINDOW_HEIGHT 480#define BOX_WIDTH 100#define BOX_HEIGHT 40... 阅读全文
posted @ 2014-11-25 11:59 stanley19861028 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Big/Little Endian 阅读全文
posted @ 2014-11-21 09:32 stanley19861028 阅读(153) 评论(0) 推荐(0) 编辑
摘要: class Base64{public: static string Encrypt(string sPlainText); static string Decrypt(string sCipherText);private: static int ConvertToIndex(u... 阅读全文
posted @ 2014-11-20 13:15 stanley19861028 阅读(163) 评论(0) 推荐(0) 编辑