+ -
当前位置:首页 → 问答吧 → C/C++
  • c++深拷贝+装饰者模式+内存释放
    #include<iostream>#include<string>usingnamespacestd;classPerson{ public: stringm_name;//为了调试,访问属性破坏了封装性  Person(){//构造函数  cout<<this<
    xiaoyanghuaban  时间:12-06 + 阅读全文
  • c++小问题求助!
    classpoint{public:floatx,y;......}intmain(){intx,y;pointp1(x,y);}作为point的对象p1中的参数x,y可以是未知数吗?
    s_april_s  时间:12-06 + 阅读全文
  • 关于复制构造函数的作用
    C/C++code#include<iostream>usingnamespacestd;classarray{public:array(intn);~array();array(array&c);intsum();private:int*p;intnumber;};array::arra
    LAST_MAN  时间:12-06 + 阅读全文
  • 请教!
    我让仪表在循环采数,使用for循环,此时点击其他控件没有作用,必须等循环结束才行,有什么办法能解决呢?谢谢了
    alice075  时间:12-06 + 阅读全文
  • C算法
    向一个长度V[16,1024]的数组空数组里面写块数据进去,块数据的长度可以为1或者2或者4或者8,同时还可以按块删除这些数据,怎么实现写和删除呢?比如先依次分配长度为1,4,2的块,再删除4的块,这个时候就可以在4的块这里插入1的块或者2的块。
    huazigg  时间:12-06 + 阅读全文
  • 链接库文件问题
    1、比如源程序中有#pragmacomment(lib,"XXX.lib") externdoublepow(double,double);doublepow(doublex,doubley){ return55;}然后XXX库文件中也定义了doublepow(doublex,doubley)这个函数,然后XXX库文件还在我的工程默认库文
    lijihustsuper  时间: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:inti
    liao4052  时间:12-06 + 阅读全文
  • 求助!mscomm控件
    mscomm控件如何读取指定长度的字符串,类似于CVI中ComRd(intCOMPort,charbuffer[],intcount),谢谢
    alice075  时间:12-06 + 阅读全文
  • cosnt用法,请赐教
    C/C++codeconstchar*p;charconst*p;两者有什么区别?
    swizard04  时间:12-06 + 阅读全文

热门应用

更多