我在doc里面声明了一个CArray的模板,如下:public:
 
 
    CArray<double,double> m_data;
但是编译时竟然出现了12个错误:--------------------Configuration: SignalResponse - Win32 Debug--------------------
Compiling...
SignalResponse.cpp
 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 ';'
 
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 ';'
 
: fatal error C1004: unexpected end of file found
error C2059: syntax error : '<'
: error C2238: unexpected token(s) preceding ';'
Generating Code...
Error executing cl.exe.
 
 
但是用CDWordArray是没有出现这种情况,很顺利的通过,请问这是什么回事。到底该栽趺囱谜飧龆鳎?br> 谢谢
 
--