我在头文件中声明了一个类型指针类! CTypedPtrList <CObject,CLine*> list;但产生如下错误!是不是我少包含了头文件!在10.h中已包含有line.h
在10.cpp 中包含有afxwin.h,10.h,--------------Configuration: 10 - Win32 Debug--------------------
Compiling...
10.cpp
d:\program files\microsoft visual studio\myprojects\10\10.h(25) : error C2143: syntax error : missing ';' before '<'
d:\program files\microsoft visual studio\myprojects\10\10.h(25) : error C2501: 'CTypedPtrList' : missing storage-class or type specifiers
d:\program files\microsoft visual studio\myprojects\10\10.h(25) : error C2059: syntax error : '<'
d:\program files\microsoft visual studio\myprojects\10\10.h(25) : error C2238: unexpected token(s) preceding ';'