我在MDI结构的程序中:在CChildFrame中定义:
public:
CArray<int,int> m_num;
--------------------Configuration: demo - Win32 Debug--------------------
Compiling...
ChildFrm.cpp
c:\lab\demo\childfrm.h(21) : error C2143: syntax error : missing ';' before '<'
c:\lab\demo\childfrm.h(21) : error C2501: 'CArray' : missing storage-class or type specifiers
c:\lab\demo\childfrm.h(21) : error C2059: syntax error : '<'
c:\lab\demo\childfrm.h(21) : error C2238: unexpected token(s) preceding ';'
demo.cpp
c:\lab\demo\childfrm.h(21) : error C2143: syntax error : missing ';' before '<'
c:\lab\demo\childfrm.h(21) : error C2501: 'CArray' : missing storage-class or type specifiers
c:\lab\demo\childfrm.h(21) : error C2059: syntax error : '<'
c:\lab\demo\childfrm.h(21) : error C2238: unexpected token(s) preceding ';'
为什么?