vc基础问题,十万火急搬救兵?
我在编程中,在CDocument类中定义了以下数据:
Carray<CDrive,CDrive> DocDrive;(注:CDrive为我自定义的一个类,继承于CObject)。编译时出现以下一些错误:
c:\my documents\mydata\first\firstdoc.h(28) : error C2143: syntax error : missing ';' before '<'
c:\my documents\mydata\first\firstdoc.h(28) : error C2501: 'CArray' : missing storage-class or type specifiers
c:\my documents\mydata\first\firstdoc.h(28) : error C2059: syntax error : '<'
c:\my documents\mydata\first\firstdoc.h(28) : error C2238: unexpected token(s) preceding ';'
请高手指教,万分感激!