C++ questions# Programming - 葵花宝典
b*n
1 楼
【 以下文字转载自 Quant 讨论区 】
发信人: nadw (singer), 信区: Quant
标 题: C++ questions
发信站: BBS 未名空间站 (Sat Jul 14 16:51:54 2007)
I was asked these two questions recently:
1. what are the drawbacks of pass-by-value? (i said: copy may use alot
memory and slow, can not change the value, slicing problem. But interviewer
said there are more serious problems?)
2. how do you limit the number of objects of a class?
发信人: nadw (singer), 信区: Quant
标 题: C++ questions
发信站: BBS 未名空间站 (Sat Jul 14 16:51:54 2007)
I was asked these two questions recently:
1. what are the drawbacks of pass-by-value? (i said: copy may use alot
memory and slow, can not change the value, slicing problem. But interviewer
said there are more serious problems?)
2. how do you limit the number of objects of a class?