摘要: #include#include"common.h"#include#include#include"Calendar.h"#include#include#include#includeusingnamespaceboost::posix_time;usingnamespaceboost::gregorian;usingnamespacestd; typedefstructtagPerson{ stringname; intage;}Person; intmain(intargc){ stringname="zhangdong"; 阅读全文
posted @ 2013-07-20 14:55 Predator 阅读(1043) 评论(0) 推荐(0) 编辑
摘要: #include#include"common.h"#include#include#include"Calendar.h"#include#include#includeusingnamespaceboost::posix_time;usingnamespaceboost::gregorian;usingnamespacestd; structtagPerson{ stringname; intage;}Person; //去除左边的空格字符voidlTrim(char*str);//去除右边的空格字符voidrTrim(char*str);//去除左 阅读全文
posted @ 2013-07-20 14:39 Predator 阅读(528) 评论(0) 推荐(0) 编辑
摘要: TEST(StringTest, Equal){ char ch[10] = "ganquanfu"; //EXPECT_EQ("ganquanfu" ,ch); //EXPECT_STREQ("ganquanfu" ,ch);//字符串比较 EXPECT_FLOAT_EQ(12.111, 12.1111); EXPECT_EQ(12.111, 12.111);} 阅读全文
posted @ 2013-07-20 13:51 Predator 阅读(1971) 评论(0) 推荐(0) 编辑
摘要: char chs[20] = ""; //if (chs[0] == '\0') //{ // cout << "OK" << endl; //输出OK //} if (chs[0] == 0) { cout << "OK" << endl; //输出OK } 阅读全文
posted @ 2013-07-20 13:50 Predator 阅读(176) 评论(0) 推荐(0) 编辑
摘要: #include#include "common.h"#include#include #include "Calendar.h"#include #include #include#include #include #include using namespace boost::posix_time;using namespace boost::gregorian;using namespace std;typedef struct tagData{ tagData() { price = 0.0f; total = 0; } float price; 阅读全文
posted @ 2013-07-20 13:49 Predator 阅读(207) 评论(0) 推荐(0) 编辑
摘要: #include#include "common.h"#include#include #include "Calendar.h"#include #include#include #include #include using namespace boost::posix_time;using namespace boost::gregorian;using namespace std; struct tagPerson{public: string name; int age;};int main(int argc){ boost::shared_p 阅读全文
posted @ 2013-07-20 13:48 Predator 阅读(543) 评论(0) 推荐(0) 编辑
摘要: #include#include"common.h"#include#include#include"Calendar.h"#include#include#includeusingnamespaceboost::posix_time;usingnamespaceboost::gregorian;usingnamespacestd; structtagPerson{ stringname; intage;}Person; voidChangeContentBySP(tagPerson*person);intmain(intargc){ boost::sh 阅读全文
posted @ 2013-07-20 13:46 Predator 阅读(713) 评论(0) 推荐(0) 编辑
摘要: date myDate; myDate = from_undelimited_string("20131202"); cout << to_iso_string(myDate) << endl; time_duration myTime; myTime = duration_from_string("09:58"); time_duration myOtherTime; myOtherTime = duration_from_string("09:10"); cout << myTime.minut 阅读全文
posted @ 2013-07-20 13:30 Predator 阅读(1619) 评论(0) 推荐(0) 编辑
摘要: #include#include "common.h"#include#include #includeusing namespace boost::posix_time;using namespace boost::gregorian;using namespace std;int main(int argc){ // 构造 ptime myPTime1(date(2013,6,1), hours(12)); ptime myPTime2 = from_iso_string("20130601T120000"); ptime myPTime3 = se 阅读全文
posted @ 2013-07-20 13:29 Predator 阅读(2843) 评论(0) 推荐(0) 编辑
摘要: #include#include "common.h"#include#include #include#include "Dictionary.h"using namespace std;using namespace boost::gregorian;using namespace boost;void GetShortInstrument(SWInstrumentIDDataType InstrumentID, SWShortInstrumentIDDataType szShortInstrumentID);void main(){ SWShort 阅读全文
posted @ 2013-07-20 13:28 Predator 阅读(220) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;//标准命名空间#define ARY_SIZE 10int main(){ bitsetb; for (int i = 0; i > wait; return 0;} 阅读全文
posted @ 2013-07-20 13:26 Predator 阅读(209) 评论(0) 推荐(0) 编辑
摘要: #include#includeusing namespace std;using namespace boost::gregorian;using namespace boost;//2013/07/01 09:24:30void main(){ //date myDate ; //myDate = from_undelimited_string("20130715131225"); //cout > wait;} 阅读全文
posted @ 2013-07-20 13:25 Predator 阅读(1994) 评论(0) 推荐(0) 编辑
摘要: int main(){ vector vcDatas; int word; int k = 0; while(k != 5) { ++k; cin >>word; vcDatas.push_back(word); } for (vector::size_type size_x = 0; size_x != vcDatas.size(); ++size_x) { cout > wait; return 0;} 阅读全文
posted @ 2013-07-20 13:24 Predator 阅读(1332) 评论(0) 推荐(0) 编辑
摘要: #include //标准输入输出流#include "Utils.h"#include "Config.h"#include "stdio.h"#include "cloneable.h"#include "IPerfomanceEvalShare.h"#include using namespace xml_my_api;using namespace xml_api;using namespace std;//标准命名空间#define ARY_SIZE 10class CPork{pub 阅读全文
posted @ 2013-07-20 13:22 Predator 阅读(180) 评论(0) 推荐(0) 编辑