boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - c++问题
相关主题
问个构造函数的问题
interview question (ZT)
log4j 谁熟悉?
一道c++ 题, 找出duplicate numbers
请教几个C++问题
Synthesized Constructor到底什么意思?
[合集] 又学了一招
请教个Bloomberg 的 C++ 题目
Is the order of initialization a, b, c or c, b, a?
一个c++ constructor的问题, thanks
相关话题的讨论汇总
话题: args话题: public话题: arg话题: class
进入Programming版参与讨论
1 (共1页)
H*M
发帖数: 1268
1
given two classes
class B
{
public:
B(args_1);
B(args_2);
// and many constructors with different arg lists
};
class D : public B
{
public:
D(args_1) : B(args_1) {}
D(args_2) : B(args_2) {}
// and many constructors with different signatures similarly implemented
// some additional stuff specific to D
};
Assume that the arg list for B's constructors are quite long and may berevis
ed pretty often in the future, in which case D's constructors have to be rec
oded correspondingly. Duplicating the upd
p***o
发帖数: 1252
2
21211

【在 H*M 的大作中提到】
: given two classes
: class B
: {
: public:
: B(args_1);
: B(args_2);
: // and many constructors with different arg lists
: };
: class D : public B
: {

H*M
发帖数: 1268
3
谢谢。 找了templated class,但是还是不是很清楚。能有什么材料推荐下看么?或者直
接说两句?
thx!

【在 p***o 的大作中提到】
: 21211
t****t
发帖数: 6806
4
http://mitbbs.com/article/JobHunting/31435253_3.html

者直

【在 H*M 的大作中提到】
: 谢谢。 找了templated class,但是还是不是很清楚。能有什么材料推荐下看么?或者直
: 接说两句?
: thx!

1 (共1页)
进入Programming版参与讨论
相关主题
一个c++ constructor的问题, thanks
question about Design Patterns
c++ question
what is the difference?
菜鸟请教smart pointer
An algorithm question
关于数组动态分配的疑问???
C++ 中 myobject * a =new myobject[n] 的问题
c++:constructor 一问
Test your C++ knowledge...
相关话题的讨论汇总
话题: args话题: public话题: arg话题: class