当前位置:
凯发ag旗舰厅登录网址下载 >
编程语言
> c/c
>内容正文
c/c
c q16: dereferencing -凯发ag旗舰厅登录网址下载
凯发ag旗舰厅登录网址下载
收集整理的这篇文章主要介绍了
c q16: dereferencing
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
发信人: careerchange (stupid), 信区: programming
标 题: c q16: dereferencing
发信站: 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
发信站: 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年技术见证,附赠技术全景图总结
以上是凯发ag旗舰厅登录网址下载为你收集整理的c q16: dereferencing的全部内容,希望文章能够帮你解决所遇到的问题。
如果觉得凯发ag旗舰厅登录网址下载网站内容还不错,欢迎将凯发ag旗舰厅登录网址下载推荐给好友。
- 上一篇: c#开发xml webservice接口
- 下一篇: