template定义的报错
我定义:CArray<CPoint,CPoint> m_pointArray;
报错:
error C2143: syntax error : missing ';' before '<'
error C2501:'CArray' : missing storage-class or type specifiers
error C2059: syntax error : '<'
error C2238: unexpected token(s) preceding ';'定义: CTypedPtrList<CObList,CStroke*> m_strokeList;
报错:
error C2143: syntax error : missing ';' before '<'
error C2501: 'CTypedPtrList' : missing storage-class or type specifiers
error C2059: syntax error : '<'
error C2238: unexpected token(s) preceding ';'我是对着书(深入浅出MFC)打出来的,请各位帮忙