求助,小弟真急了
在文档类XXDoc中创建管理各类图形元素对象指针的CObArray对象,比如,直线类的,如:CTypedPtrArray<CObArray,CLine*>m_LineArray;
编译出现错误:d:\vc++\msdev98\myprojects\draw3\draw3doc.h(103) : error C2143: syntax error : missing ';' before '<'
d:\vc++\msdev98\myprojects\draw3\draw3doc.h(103) : error C2501: 'CTypedPtrArray' : missing storage-class or type specifiers
d:\vc++\msdev98\myprojects\draw3\draw3doc.h(103) : error C2059: syntax error : '<'
d:\vc++\msdev98\myprojects\draw3\draw3doc.h(103) : error C2238: unexpected token(s) preceding ';'
D:\VC++\MSDev98\MyProjects\DRAW3\DRAW3View.cpp(122) : warning C4244: 'return' : conversion from 'float' to 'int', possible loss of data
D:\VC++\MSDev98\MyProjects\DRAW3\DRAW3View.cpp(127) : warning C4244: 'return' : conversion from 'int' to 'float', possible loss of data
Line.cpp
MainFrm.cpp
Pline.cpp
d:\vc++\msdev98\myprojects\draw3\draw3doc.h(103) : error C2143: syntax error : missing ';' before '<'
d:\vc++\msdev98\myprojects\draw3\draw3doc.h(103) : error C2501: 'CTypedPtrArray' : missing storage-class or type specifiers
d:\vc++\msdev98\myprojects\draw3\draw3doc.h(103) : error C2059: syntax error : '<'
d:\vc++\msdev98\myprojects\draw3\draw3doc.h(103) : error C2238: unexpected token(s) preceding ';'