-
c++深拷贝+装饰者模式+内存释放#include<iostream>#include<string>usingnamespacestd;classPerson{ public: stringm_name;//为了调试,访问属性破坏了封装性 Person(){//构造函数 cout<<this<xiaoyanghuaban 时间:12-06 + 阅读全文
-
关于复制构造函数的作用C/C++code#include<iostream>usingnamespacestd;classarray{public:array(intn);~array();array(array&c);intsum();private:int*p;intnumber;};array::arraLAST_MAN 时间:12-06 + 阅读全文
-
关于工程里断点的问题???一个MFC程序里面用createprocess方式启动了一个WIN32工程 请问如何设置才能让WIN32工程里的断点有效果Nicky0930 时间:12-06 + 阅读全文
-
0xC0000005: 写入位置 0x00000000 时发生访问冲突写了个程序,能运行,但是会出现如题的情况,先贴代码这是ma.h[code=C/C++][/code]#include<iostream>#include<cassert>usingnamespacestd;template<typenameT>classmat{private:classriple{public:intiliao4052 时间:12-06 + 阅读全文
-
求助!mscomm控件mscomm控件如何读取指定长度的字符串,类似于CVI中ComRd(intCOMPort,charbuffer[],intcount),谢谢alice075 时间:12-06 + 阅读全文