上一页 1 2 3 4 5 6 7 8 ··· 63 下一页
摘要: 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 阅读(1972) 评论(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) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 63 下一页