摘要:
#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( 阅读全文
摘要:
#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) . 阅读全文
摘要:
#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 阅读全文
摘要:
#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()) 阅读全文