超级版主
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
|
回复: 【转帖】template <class TYPE,class ARG_TYPE> class CArray:public CObject
比如CArray <CString, CString&>
//参数
void SetAt( int nIndex, ARG_TYPE newElement );
就相当于void SetAt( int nIndex, CString& newElement );
//返回值
TYPE GetAt( int nIndex ) const;
就相当于CString GetAt(int nIndex) const;
__________________
借用达朗贝尔的名言:前进吧,你会得到信心!
[url="http://www.dimcax.com"]几何尺寸与公差标准[/url]
|