摘要:
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 阅读全文