C++ Q16: dereferencing
生活随笔
收集整理的這篇文章主要介紹了
C++ Q16: dereferencing
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
發(fā)信人: careerchange (Stupid), 信區(qū): Programming
標? 題: C++ Q16: dereferencing
發(fā)信站: BBS 未名空間站 (Mon Aug? 9 22:49:44 2010, 美東)
struct X {
? int foo() { return 0; }
} x;
struct Y {? static int (X::*p)(); };
int (X::*Y::p)()=&X::foo;
Given the declarations in the sample code above, which one of the following
invocations is correct?
a) (x.*Y::p)();
b) (x->*Y::p)();
c) (Y::p)(x);
d) (Y::x.*p)();
e) (x.Y::p)();?
標? 題: C++ Q16: dereferencing
發(fā)信站: BBS 未名空間站 (Mon Aug? 9 22:49:44 2010, 美東)
struct X {
? int foo() { return 0; }
} x;
struct Y {? static int (X::*p)(); };
int (X::*Y::p)()=&X::foo;
Given the declarations in the sample code above, which one of the following
invocations is correct?
a) (x.*Y::p)();
b) (x->*Y::p)();
c) (Y::p)(x);
d) (Y::x.*p)();
e) (x.Y::p)();?
轉載于:https://www.cnblogs.com/cutepig/archive/2010/08/11/1797619.html
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的C++ Q16: dereferencing的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C#开发XML WebService接口
- 下一篇: 驳《从团购网站看中国人的创新精神》