j********x 发帖数: 2330 | 1 1. what is operator overloading
2. c++ operators that cannot be overloaded
3. why operators like && should not be overloaded
4. why prefer non-member binary operator overloading
function
5. what is pure virtual function
6. can abstract class be extended?
7. how to indicate error in ctors?
8. what is auto_ptr, its restrictions? how to remedy it?
9. write a reverse function to reverse the digits of an
integer. what if the integer can be negative?
10. brain teaser: a pile of coins, 10 tails and 90 heads,
you are blind-folded (cannot see, or distinguish by
touching), separate them into two piles of equal-number of
tails. | l*****a 发帖数: 559 | | H******7 发帖数: 1728 | | b*******s 发帖数: 5216 | 4 最后一题分成两堆,一堆是tails的总数,另一堆是其它
然后把第一堆翻一面 | n********y 发帖数: 66 | |
|