由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [合集] 一些C++问题
相关主题
C++ 中 myobject * a =new myobject[n] 的问题pthread_create inside a constructor
Is the order of initialization a, b, c or c, b, a?问个copy constructor的问题
问个C++的operator conversation function问题operator() overloading 一问
一道 memset in C++的题C++: operator new 为啥要是 static的, 不是有啥影响?
[合集] C++的弱问题Test your C++ knowledge...
what is the difference?[合集] 又学了一招
抠字眼:assignment and initialize in C++why do we still use dynamic allocation?
c++ initialize struct请教问题
相关话题的讨论汇总
话题: apr话题: mon话题: 2005话题: thrust
进入Programming版参与讨论
1 (共1页)
b***y
发帖数: 2799
1
☆─────────────────────────────────────☆
thrust (thrust) 于 (Sun Apr 17 14:16:25 2005) 提到:
第一个, 很明显没有copy constructor和operator=
(只要自己分配内存, 这两个东西就几乎是必定要有的)
第二个, 除了b不可能改以外, 倒是没什么大问题.
虽然用的名字乱了点.

☆─────────────────────────────────────☆
starrysky (冰糖葫芦_爱可不可以永远幸福没有悲伤) 于 (Mon Apr 18 01:55:02 2005) 提到:
这是给a进行 initialization吧 ,可是 a是A类型的, A没定义copy
constructor, 这样不好吧.
☆─────────────────────────────────────☆
prioritizing (山高海深) 于 (Mon Apr 18 02:12:30 2005) 提到:
1 (共1页)
进入Programming版参与讨论
相关主题
请教问题[合集] C++的弱问题
find bugs of c++ codeswhat is the difference?
C++ Q01: private inheritance.抠字眼:assignment and initialize in C++
一个 default constructor 的问题c++ initialize struct
C++ 中 myobject * a =new myobject[n] 的问题pthread_create inside a constructor
Is the order of initialization a, b, c or c, b, a?问个copy constructor的问题
问个C++的operator conversation function问题operator() overloading 一问
一道 memset in C++的题C++: operator new 为啥要是 static的, 不是有啥影响?
相关话题的讨论汇总
话题: apr话题: mon话题: 2005话题: thrust