我在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> 谢谢
--
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货