memtemp14.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 31 行
C
31 行
// Build don't run:// GROUPS passed templates membertemplatesextern "C" int printf (const char *, ...);template <class T>struct S{ template <class U, class V> void foo(U, V);};template <class T>template <class U, class V>void S<T>::foo(U, V){ printf("Hello, world.\n");}int main(){ S<int> s; s.foo(3, 3); s.foo("hello", s); S<char*> s2; s2.foo(3, 3); s2.foo("hello", s);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?