access17.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 25 行
C
25 行
// Make sure definitions of static members have the right access.// Build don't link:struct A {protected: int i; // ERROR - private int f (); // ERROR - };struct B: public A { static int A::*p; static int (A::*fp)();};int A::* B::p = &A::i;int (A::* B::fp)() = &A::f;struct C { static int A::*p; static int (A::*fp)();};int A::* C::p = &A::i; // ERROR - int (A::* C::fp)() = &A::f; // ERROR -
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?