摘要: #include #include #include #include #include #include #include "CSHOW.H"using namespace boost;using namespace std;int main(){hash_map student;student.insert(pair("ganquanfu" ,98));student.insert(pair("zhouxiaojie" ,88));//cout ::iterator hpItem;for (hpItem = student.beg 阅读全文
posted @ 2013-06-28 21:25 Predator 阅读(321) 评论(0) 推荐(0) 编辑
摘要: #pragma onceclass CDoctor{private:CDoctor(void);public:~CDoctor(void);static CDoctor* Instance();public:void Display();private: static CDoctor* instance;};#include "Doctor.h"#include using namespace std;CDoctor::CDoctor(void){}CDoctor::~CDoctor(void){}CDoctor *CDoctor::instance = NULL;CDoc 阅读全文
posted @ 2013-06-28 21:24 Predator 阅读(206) 评论(0) 推荐(0) 编辑
摘要: #include namespace my_timer{class timer{public:timer(){ _start_time = std::clock();};void restrart(){_start_time = std::clock();};double elapsed() const{return double(std::clock() - _start_time) / CLOCKS_PER_SEC; }double elapsed_max() const {}double elapsed_min() const{return double(1)/double(CLOCKS 阅读全文
posted @ 2013-06-28 21:23 Predator 阅读(403) 评论(0) 推荐(0) 编辑
摘要: timer tm;date dtStartDate = from_undelimited_string("20080116"); date dtEndDate = from_undelimited_string("20130120"); date tem ;int count = 0;int gap = 0;if (dtStartDate > dtEndDate) {return ;}if (dtStartDate.day_of_week() == 0){tem = dtStartDate;}else{gap = dtStartDate.day_o 阅读全文
posted @ 2013-06-28 21:21 Predator 阅读(576) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#include#include#include #include #include"CSHOW.H"usingnamespaceboost;usingnamespacestd; voidPutDatas(intnData,floatfPrice){ while(true) { Sleep(1000); cout>wait;} 阅读全文
posted @ 2013-06-28 21:20 Predator 阅读(179) 评论(0) 推荐(0) 编辑