p3524a.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 26 行
C
26 行
// Make sure we can initialize a reference to a templated type, that// requires a conversion from a derived type to a base type.// Build don't link:// prms-id: 3524struct cc2Vector{};template <class T>struct ccPair{ ccPair (const cc2Vector&);};struct ccLine : cc2Vector{ double distToPoint (const ccPair <float> &);};void foo (){ ccLine l2; l2.distToPoint (l2);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?