欢迎访问 生活随笔!

凯发k8官方网

当前位置: 凯发k8官方网 > 编程语言 > c/c >内容正文

c/c

c q16: dereferencing -凯发k8官方网

发布时间:2024/10/8 c/c 0 豆豆
凯发k8官方网 收集整理的这篇文章主要介绍了 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)(); 

转载于:https://www.cnblogs.com/cutepig/archive/2010/08/11/1797619.html

与50位技术专家面对面20年技术见证,附赠技术全景图

总结

以上是凯发k8官方网为你收集整理的c q16: dereferencing的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得凯发k8官方网网站内容还不错,欢迎将凯发k8官方网推荐给好友。

网站地图