摘要:
#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"; 阅读全文
摘要:
#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);//去除左 阅读全文
摘要:
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);} 阅读全文
摘要:
char chs[20] = ""; //if (chs[0] == '\0') //{ // cout << "OK" << endl; //输出OK //} if (chs[0] == 0) { cout << "OK" << endl; //输出OK } 阅读全文
摘要:
#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; 阅读全文
摘要:
#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 阅读全文
摘要:
#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 阅读全文
摘要:
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 阅读全文
摘要:
#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 阅读全文
摘要:
#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 阅读全文
摘要:
#include #include using namespace std;//标准命名空间#define ARY_SIZE 10int main(){ bitsetb; for (int i = 0; i > wait; return 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;} 阅读全文
摘要:
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;} 阅读全文
摘要:
#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 阅读全文