p********7 发帖数: 549 | 1 (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 be
revised pretty often in the future, in which case D's constructors have
to be recoded correspondingly. Duplicating the |
y****n 发帖数: 579 | |
p******r 发帖数: 2999 | 3 反例
1 2 3 4
100 101 102 103
200 201 202 203
300 301 302 303
【在 y****n 的大作中提到】 : 俺错了。
|
K******g 发帖数: 1870 | 4 这两题好像都挺有难度的,谁有好的想法吗?
【在 p********7 的大作中提到】 : (1) : Given two classes: : class B : { : public: : B(args_1); : B(args_2); : // and many constructors with different arg lists : }; : class D : public B
|
b********h 发帖数: 119 | 5 The second one is Young tableaus. CLRS 6-3.
【在 p********7 的大作中提到】 : (1) : Given two classes: : class B : { : public: : B(args_1); : B(args_2); : // and many constructors with different arg lists : }; : class D : public B
|
s********l 发帖数: 998 | 6 请问哪里有答案啊?
【在 b********h 的大作中提到】 : The second one is Young tableaus. CLRS 6-3.
|