64,663
社区成员
发帖
与我相关
我的任务
分享
template <typename _Type>
class cArray
{
public:
template <typename _OtherType>
cArray(const cArray<_OtherType> & Ref);
};
template <typename _Type>
template <typename _OtherType>
cArray<_Type>::cArray(const cArray<_OtherType> & Ref)
{
}
[/quote]
哈哈,谢谢朋友,可以了!!
这样子就很有用处了;
template <typename _Type>
class cArray
{
public:
template <typename _OtherType>
cArray(const cArray<_OtherType> & Ref);
};
template <typename _Type>
template <typename _OtherType>
cArray<_Type>::cArray(const cArray<_OtherType> & Ref)
{
}
[/quote]
对对对,就是这样!!我先去试试行不行;
template <typename _Type>
class cArray
{
public:
template <typename _OtherType>
cArray(const cArray<_OtherType> & Ref);
};
template <typename _Type>
template <typename _OtherType>
cArray<_Type>::cArray(const cArray<_OtherType> & Ref)
{
}
template <typename _Type>template <typename _OtherType>
cArray<_Type>::cArray( const cArray<_OtherType> & Ref )
{
};