scope2.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 30 行

C
30
字号
// Build don't link: // GROUPS passed scopingclass A{ public:  A() {}  ~A() {}  virtual void f() {}};class B : public A{ public:  B() {}  ~B() {}  virtual void f() {}};B GLOBAL_B;B& foo() {return GLOBAL_B;}int main(){  // build_scoped_method_call and build_scoped_ref should know how  // to deal with a reference for this  foo().A::f(); }

⌨️ 快捷键说明

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