正在加载图片...
Parameterized Types(cont) u Definition of class BinaryTree template< typename elemtype class Binary Tree public private BTNode<elemtype>*m root a When we need to add template parameter list after the class template? a Except in the definition of class template and its member functionsParameterized Types (cont.) ◼ Definition of class BinaryTree template < typename elemtype > class BinaryTree { public: //… private: //… BTNode<elemtype>* m_root; }; ◼ When we need to add template parameter list after the class template? ◼ Except in the definition of class template and its member functions
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有