eb26.c

来自「用于进行gcc测试」· C语言 代码 · 共 32 行

C
32
字号
// { dg-do run  }//// egcs-2.90.06// cannot declare friend of enclosing class using its scope, works fine// without scope or for definition of foo::bar::f//class foo{public:  static int f();  class bar {    friend int foo::f();//  friend int f();    static int x;  public:    static int f() {return foo::f();}   };};int foo::bar::x;int foo::f() {  return bar::x;}intmain (){  return foo::bar::f ();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?