由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 请教一个C++的题目,谢谢
相关主题
c++问题昨天面试的题目
FB的这道题怎么答?问个问题:知道 偏微分方程 和 matlab 的请帮忙
A家面试题报offer
一道brianbench C++题昨晚的Google Intern Interview
C++ Q41: std::sort (C4)H1B问卷还有提交文件有些项目不很明白 求教 谢谢
冒个泡:One Tip on Cover Letter (Email)Probability quesiton
USCIS phone/email/mailing address! Mark please!因病请假没有工资,H1B会失效吗?
问一个老题 longest palindrome[Google] Arangement of blocks
相关话题的讨论汇总
话题: args话题: public话题: arg话题: c++
进入JobHunting版参与讨论
1 (共1页)
P*******b
发帖数: 1001
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 update by
copy-and-paste
will certainly work here. Can you propose a better way so that the
update can be done in one place without copy-and-paste duplication?
d******a
发帖数: 238
2
define another class C. using C to construct A and B, and use args_1, args_2
.. to construct C.
q*******p
发帖数: 39
3
Macro
1 (共1页)
进入JobHunting版参与讨论
相关主题
[Google] Arangement of blocksC++ Q41: std::sort (C4)
Front desk IT opening at a top bank冒个泡:One Tip on Cover Letter (Email)
parelegal/executive assistant in Charlotte, NCUSCIS phone/email/mailing address! Mark please!
看看我发的催信不知道是不是太pushy了问一个老题 longest palindrome
c++问题昨天面试的题目
FB的这道题怎么答?问个问题:知道 偏微分方程 和 matlab 的请帮忙
A家面试题报offer
一道brianbench C++题昨晚的Google Intern Interview
相关话题的讨论汇总
话题: args话题: public话题: arg话题: c++