template21.c

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

C
44
字号
// Build don't link: // GROUPS passed templatestemplate<class T>class L {public:    L();    T x[30];    int doit(int i) const;};#ifdef BUGtemplate<class T>intL<T>::doit(int i) const{    return x[i].z;}#endifclass X {public:    class Y {    public:        Y();        Y(int);        int z;    };        L<Y> ly;};#ifndef BUGtemplate<class T>intL<T>::doit(int i) const{    return x[i].z;}#endifstatic X x;

⌨️ 快捷键说明

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