上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 63 下一页
摘要: #include #include #include #include #include #include using namespace boost;using namespace std;void main(){ vector vcLines; for (int i = 0; i ::iterator vcTem; for (vcTem = vcLines.begin(); vcTem != vcLines.end(); ++vcTem) { fs vcOutput; string line; ifstream ifile("E:\\line.txt"); while( 阅读全文
posted @ 2013-07-01 21:06 Predator 阅读(389) 评论(0) 推荐(0) 编辑
摘要: #include using namespace boost::posix_time;using namespace boost;class ReleaseResource{public: ReleaseResource(); ~ReleaseResource(); void DisplayMsg();private: char *m_szpString;};ReleaseResource::ReleaseResource(){ m_szpString = new char[40];}ReleaseResource::~ReleaseResource(){ if (m_szpString) . 阅读全文
posted @ 2013-07-01 21:05 Predator 阅读(436) 评论(0) 推荐(0) 编辑
摘要: #pragma onceclass CNumber{public: CNumber(void); CNumber(int total); ~CNumber(void); void ShowNumber(); int GetTotal();CNumber & operator = (const CNumber &number);public: int m_nTotal;};#include "Number.h"#include using namespace std;CNumber::CNumber(void){}CNumber::CNumber( int t 阅读全文
posted @ 2013-07-01 21:04 Predator 阅读(176) 评论(0) 推荐(0) 编辑
摘要: #include "Number.h"#include #include #include "Person.h"#include #include using namespace boost;using namespace std;void main(){ /*CNumber number1(20); CNumber number2; number2 = number1; cout pNumber(new CNumber(1000)); pNumber->ShowNumber(); boost::shared_ptr pInt(new int()) 阅读全文
posted @ 2013-07-01 21:02 Predator 阅读(412) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 63 下一页