memtemp81.c

来自「gcc-you can use this code to learn somet」· C语言 代码 · 共 25 行

C
25
字号
// Build don't link:template <int i> class a{public :int  k;template <int j> int f() const { return this->f<j-1>(); }int g() const { return f<i>(); };};template <>template <>int a<2>::f<0>() const {  return 0;}int main(){a<2> x;return x.g();}

⌨️ 快捷键说明

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