crash18.c

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

C
24
字号
// Build don't run:template<class T>class foo {  T deft;  template<class U> int priv (U u, T t) { return u - t; }public:  foo (T t) : deft (t) {}  template<class U> int pub (U u) {    int (foo::*fn) (U, T);    fn = &foo<T>::template priv<U>;    return (this->*fn) (u, deft);  }};intmain (){  foo<long> fff (5);  return fff.pub (3);}

⌨️ 快捷键说明

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