eb26.c

来自「俄罗斯高人Mamaich的Pocket gcc编译器(运行在PocketPC上)」· C语言 代码 · 共 31 行

C
31
字号
//// 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 + -
显示快捷键?