h*g
2 楼
Q1) Which of the following general functions gives a pointer to the
immediate
base class of a derived class, i.e. the direct parent class?
A) parent()
B) super()
C) base()
D) This function does not exist.
我好像选了super(), 这个java里有,c++里有没有啊?
Q2) What is the problem with the following code snippet?
class myclass;
myclass* pmc = new myclass();
free(pmc);
A) The problem is that releasing memory with "free" is possible only if the
memory was allocated with "malloc".
B) The problem is that "free" can release only "void" pointers.
C) The problem is that the destructor of "myclass" is not called.
D) The problem is that "if (pmc)" should be added before "free (pmc);".
是不是因为是pointer,所以detructor没有call啊?
Q3) Which one of the following is an invalid preprocessor statement?
A) #pragma pack()
B) #pragma pack(push, r1, 16)
C) #pragma pack(16)
D) #pragma pack(16, r2)
E) #pragma pack(show)
这个完全是蒙德,一点都不知道为啥
Q4)An STL algorithm swap has an interface specified with the following code:
template < typename T >
void swap ( T& a, T& b )
{
T temp ( a );
a = b;
b = temp;
}
char* s;
char const* cs;
A) std::swap < char const* > (s,cs);
B) std::swap < char* > (s, cs);
C) std::swap(s,cs);
D) std::swap < char*, const char* > (s,cs);
immediate
base class of a derived class, i.e. the direct parent class?
A) parent()
B) super()
C) base()
D) This function does not exist.
我好像选了super(), 这个java里有,c++里有没有啊?
Q2) What is the problem with the following code snippet?
class myclass;
myclass* pmc = new myclass();
free(pmc);
A) The problem is that releasing memory with "free" is possible only if the
memory was allocated with "malloc".
B) The problem is that "free" can release only "void" pointers.
C) The problem is that the destructor of "myclass" is not called.
D) The problem is that "if (pmc)" should be added before "free (pmc);".
是不是因为是pointer,所以detructor没有call啊?
Q3) Which one of the following is an invalid preprocessor statement?
A) #pragma pack()
B) #pragma pack(push, r1, 16)
C) #pragma pack(16)
D) #pragma pack(16, r2)
E) #pragma pack(show)
这个完全是蒙德,一点都不知道为啥
Q4)An STL algorithm swap has an interface specified with the following code:
template < typename T >
void swap ( T& a, T& b )
{
T temp ( a );
a = b;
b = temp;
}
char* s;
char const* cs;
A) std::swap < char const* > (s,cs);
B) std::swap < char* > (s, cs);
C) std::swap(s,cs);
D) std::swap < char*, const char* > (s,cs);
q*4
3 楼
尤其是有年费的,拿到里程数后就cancel掉?还是每张卡都用着,老实交年费?
完全新人一个,也准备去申卡,可是不知道申这么多最后怎么处理。。
完全新人一个,也准备去申卡,可是不知道申这么多最后怎么处理。。
b*8
4 楼
好比把个傻子直接报送进清华北大,学习现代物理学。
这得是有多大的仇啊
这得是有多大的仇啊
h*g
5 楼
up up
s*g
6 楼
新人申请到这些卡难度很高吧
b*8
7 楼
林病号就是利用靖王给自己报仇罢了,代价是靖王和天下百姓。
r*d
8 楼
Q1 D
如果是c#的话就选c, 不知道有没有记错, 呵呵
Q2 A
new 只能够和delete 配着用, malloc 和free
Q3 D
http://msdn.microsoft.com/en-us/library/2e70t5y1%28VS.80%29.aspx
这个题目和上面联接的数字都一样, 发现这个我也不知道, 只用过#pragma warning(
disable : 4707 ) 呵呵
Q4 A吧..
因为cs是const char* 或者是char * const, 不管哪种cs或者*cs是const, 是不可以改
的, 所以。。。排除一下好像只能是a了。。。
如果是c#的话就选c, 不知道有没有记错, 呵呵
Q2 A
new 只能够和delete 配着用, malloc 和free
Q3 D
http://msdn.microsoft.com/en-us/library/2e70t5y1%28VS.80%29.aspx
这个题目和上面联接的数字都一样, 发现这个我也不知道, 只用过#pragma warning(
disable : 4707 ) 呵呵
Q4 A吧..
因为cs是const char* 或者是char * const, 不管哪种cs或者*cs是const, 是不可以改
的, 所以。。。排除一下好像只能是a了。。。
o*e
10 楼
哈哈哈哈。
s*n
11 楼
D, NEW=>delete, last one c.
you need read a C++ book from beginning to the end.
【在 h*****g 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: Q1) Which of the following general functions gives a pointer to the
: immediate
: base class of a derived class, i.e. the direct parent class?
: A) parent()
: B) super()
: C) base()
: D) This function does not exist.
: 我好像选了super(), 这个java里有,c++里有没有啊?
: Q2) What is the problem with the following code snippet?
: class myclass;
you need read a C++ book from beginning to the end.
【在 h*****g 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: Q1) Which of the following general functions gives a pointer to the
: immediate
: base class of a derived class, i.e. the direct parent class?
: A) parent()
: B) super()
: C) base()
: D) This function does not exist.
: 我好像选了super(), 这个java里有,c++里有没有啊?
: Q2) What is the problem with the following code snippet?
: class myclass;
o*e
12 楼
誉王忽然爆发了一下,大家纷纷倒戈。
y*o
13 楼
Q2 should be C right?
C) The problem is that the destructor of "myclass" is not called.
【在 h*****g 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: Q1) Which of the following general functions gives a pointer to the
: immediate
: base class of a derived class, i.e. the direct parent class?
: A) parent()
: B) super()
: C) base()
: D) This function does not exist.
: 我好像选了super(), 这个java里有,c++里有没有啊?
: Q2) What is the problem with the following code snippet?
: class myclass;
C) The problem is that the destructor of "myclass" is not called.
【在 h*****g 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: Q1) Which of the following general functions gives a pointer to the
: immediate
: base class of a derived class, i.e. the direct parent class?
: A) parent()
: B) super()
: C) base()
: D) This function does not exist.
: 我好像选了super(), 这个java里有,c++里有没有啊?
: Q2) What is the problem with the following code snippet?
: class myclass;
o*e
16 楼
我在感情上也有点倒戈,主要誉王这集特别霸气。希望这部戏能让他受到更多关注,接
拍更多大陆这边制作精良的戏。
拍更多大陆这边制作精良的戏。
L*e
17 楼
i*y
18 楼
这个很难说
誉王贪污是为了和太子斗,如果不用斗他也不需要那么多钱
其实是梁王为了平衡势力导致的内耗
你以为贪污能根治吗?现在全世界哪个国家根治了?美国不还是照样贪。。。。
【在 g**********r 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 就是。典型的同情弱者理论。他失败了他就可怜吗?他死了他以前的罪孽就忘了?他在
: 这版里怎么就突然上升成未来有可能的圣君了?突然那么多人为他鸣不平?连前一阵还
: 人见人爱的凯凯也突然就变成个未来的傻皇帝了?
: 他以前不是一直祸国殃民呢么,什么搜刮灾民的钱贪污国家赈灾费用再镇压闹事灾民,
: 什么为一己之私炸死平民百姓,还企图造反杀皇帝杀靖王。结果虽然戏里他成了败寇,
: 戏外倒引起了诸位的妈心。
誉王贪污是为了和太子斗,如果不用斗他也不需要那么多钱
其实是梁王为了平衡势力导致的内耗
你以为贪污能根治吗?现在全世界哪个国家根治了?美国不还是照样贪。。。。
【在 g**********r 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 就是。典型的同情弱者理论。他失败了他就可怜吗?他死了他以前的罪孽就忘了?他在
: 这版里怎么就突然上升成未来有可能的圣君了?突然那么多人为他鸣不平?连前一阵还
: 人见人爱的凯凯也突然就变成个未来的傻皇帝了?
: 他以前不是一直祸国殃民呢么,什么搜刮灾民的钱贪污国家赈灾费用再镇压闹事灾民,
: 什么为一己之私炸死平民百姓,还企图造反杀皇帝杀靖王。结果虽然戏里他成了败寇,
: 戏外倒引起了诸位的妈心。
相关阅读