template26.c

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

C
32
字号
// Build don't link: // GROUPS passed templatesclass V { public:  V();  V(int);  };template <int I> class AA: public virtual V { public:  AA();  AA(int);  };template <int I> class BB : public virtual V { public:  BB();  BB(int);  };template <int I> AA<I>::AA() {};template <int I> AA<I>::AA(int i): V(i) {};template <int I> BB<I>::BB() {};template <int I> BB<I>::BB(int i) {};class CC : public AA<1>, public BB<2> { public:  CC();  CC(int);  };

⌨️ 快捷键说明

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