avatar
dell的xps 15质量可靠吗# Hardware - 计算机硬件
d*i
1
这道题貌似以前在哪儿见过,但是忘了答案是什么了,哪位帮忙看一下。
You have a class that many libraries depend on. Now you need to modify the
class for one application. Which of the following changes require
recompiling all libraries before it is safe to build the application?
a. add a constructor
b. add a data member
c. change destructor into virtual
d. add an argument with default value to an existing member function
avatar
p*e
2
【 以下文字转载自 Military 讨论区 】
发信人: pantyhose (pantyhose), 信区: Military
标 题: 我强烈呼吁大家(尤其是国女),午餐不要带中餐到公司加热
发信站: BBS 未名空间站 (Thu Feb 19 18:36:08 2015, 美东)
中餐那个味儿呀,真的太大了,微波炉一加热,整个办公室都弥漫着那股臭味
白人都很烦的,有些白人拐弯墨叫的提醒你不要带了,但是她们会说“what's that?
smells good",但其实是在讽刺你。
请大家不要再给中国人丢人了!不要带中餐
avatar
d*i
4
顶一下,没有人知道吗?

【在 d****i 的大作中提到】
: 这道题貌似以前在哪儿见过,但是忘了答案是什么了,哪位帮忙看一下。
: You have a class that many libraries depend on. Now you need to modify the
: class for one application. Which of the following changes require
: recompiling all libraries before it is safe to build the application?
: a. add a constructor
: b. add a data member
: c. change destructor into virtual
: d. add an argument with default value to an existing member function

avatar
a*m
5
楼主应该先叫白人不要擦香水了,每次一进他们办公室我都被熏得一头一头的

【在 p*******e 的大作中提到】
: 【 以下文字转载自 Military 讨论区 】
: 发信人: pantyhose (pantyhose), 信区: Military
: 标 题: 我强烈呼吁大家(尤其是国女),午餐不要带中餐到公司加热
: 发信站: BBS 未名空间站 (Thu Feb 19 18:36:08 2015, 美东)
: 中餐那个味儿呀,真的太大了,微波炉一加热,整个办公室都弥漫着那股臭味
: 白人都很烦的,有些白人拐弯墨叫的提醒你不要带了,但是她们会说“what's that?
: smells good",但其实是在讽刺你。
: 请大家不要再给中国人丢人了!不要带中餐

avatar
s*t
7
对我来说实在太难了。。

【在 d****i 的大作中提到】
: 顶一下,没有人知道吗?
avatar
p*e
8
they are fine. 白人 are the owner of this Country.

【在 a*****m 的大作中提到】
: 楼主应该先叫白人不要擦香水了,每次一进他们办公室我都被熏得一头一头的
avatar
c*u
9
c 么?
因为change destructor into virtual 可能影响derived class的一些使用
例如 :
class A
{
public:
A(){};
~A(){cout<};
class B: public A
{
public:
B(){};
virtual ~B(){cout<};
void main()
{
A* p=new B();
delete p;
}
This will result in:
destructor A;
But if we declare ~A() as virtual ~ A(), then the result will be:
destructor B;
destructor A;
所以,如果B的destructor析构了B的一些成员变量的话,在非virtual的情况下,这些
成员变量不会被析构掉,但是在virtual的情况下会。
avatar
a*m
10
unfortunately, as long as he/she is not the owner of the company, I wouldn't
give a shit he/she likes the smell of my food or not
我特别喜欢在自己办公桌上吃午饭,吃过饭整个办公室都是韭菜味,算是帮同事们提神了
,我就不跟老板要服务费了

【在 p*******e 的大作中提到】
: they are fine. 白人 are the owner of this Country.
avatar
d*i
11
谢谢,我也选c,但是原问题好像是多选,b好像也是,因为add a member会改变class
的大小,不知是不是这样?

【在 c********u 的大作中提到】
: c 么?
: 因为change destructor into virtual 可能影响derived class的一些使用
: 例如 :
: class A
: {
: public:
: A(){};
: ~A(){cout<: };
: class B: public A

avatar
c*g
12
下次带咖喱加臭豆腐。

【在 p*******e 的大作中提到】
: they are fine. 白人 are the owner of this Country.
avatar
h*e
13
In my opinion, a recompile is a must when the object size changes. B always
changes the size, C may change it, but not always.
For C, If there are already other virtual functions in the class, the size
will not change if destructor is changed to virtual, the library can still
call it statically. If the new virtual destructor is the only virtual
function in the class, there will be some v-pointer pointing to the virtual
function table; thus modifying the size.
Is this right?
avatar
t*0
14
得看具体带啥了吧。老印的咖喱就很有名了。老美的西餐经常放很多洋葱和生蒜,味也很
冲。 中餐也可以做得很清淡的。

【在 p*******e 的大作中提到】
: they are fine. 白人 are the owner of this Country.
avatar
a*x
15
管你毛事

【在 p*******e 的大作中提到】
: 【 以下文字转载自 Military 讨论区 】
: 发信人: pantyhose (pantyhose), 信区: Military
: 标 题: 我强烈呼吁大家(尤其是国女),午餐不要带中餐到公司加热
: 发信站: BBS 未名空间站 (Thu Feb 19 18:36:08 2015, 美东)
: 中餐那个味儿呀,真的太大了,微波炉一加热,整个办公室都弥漫着那股臭味
: 白人都很烦的,有些白人拐弯墨叫的提醒你不要带了,但是她们会说“what's that?
: smells good",但其实是在讽刺你。
: 请大家不要再给中国人丢人了!不要带中餐

avatar
b*c
16
脑残

【在 p*******e 的大作中提到】
: they are fine. 白人 are the owner of this Country.
avatar
t*n
17
帖子里有白人的,基本都是外发自恨。

【在 p*******e 的大作中提到】
: they are fine. 白人 are the owner of this Country.
avatar
s*1
18
我觉得自己一直比较宽容,也很讨厌国人动不动就指责别人自恨,但是“自恨”这个词
用在楼主身上最贴切不过。

【在 p*******e 的大作中提到】
: they are fine. 白人 are the owner of this Country.
avatar
H*G
19
LZ啊,我就说你在MITBBS和华人两个论坛上到处写这个,有意思嘛?
avatar
S*1
20
天天带中餐的路过。

【在 p*******e 的大作中提到】
: they are fine. 白人 are the owner of this Country.
avatar
a*u
21
这个还是不要装你妈逼,老美带饭味道大的多了去了,garlic好重

【在 p*******e 的大作中提到】
: they are fine. 白人 are the owner of this Country.
avatar
f*n
22
顶头上司不反对就行了,别人都是屁。
avatar
p*r
23
丢他妈个逼人,怎么有那么自卑的国人才是丢人。
白人算个屁,严格来说人算个屁,
大家都是地球的暂时居住者,
凭什么我要按照你的规则做事,
老子就带鱼带虾带狮子头,
你妈逼不喜欢中餐味道,我他妈的还不喜欢pizza味道呢,
那边远滚那边去。
之前有个人和我BB过,我说go somewhere else
avatar
c*6
24
老美午餐味道重的多的是。
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。