如果有,指出下面类模板声明(或声明对)中哪些是非法的。(a)template <class Type> class C1;template <class Type,int size> class C1;(b)template <class T,U,class V> class C2;(c)template <class C1,typename C2>class C3(};(d)template <typename myT,class myr> class C4{};(e)template <class Type,int*ptr> class C5;template <class T,int*pi>class C5;
如果有,指出下面类模板声明(或声明对)中哪些是非法的。(a)template <class Type> class C1;template <class Type,int size> class C1;(b)template <class T,U,class V> class C2;(c)template <class C1,typename C2>class C3(};(d)template <typename myT,class myr> class C4{};(e)template <class Type,int*ptr> class C5;template <class T,int*pi>class C5;
1