1。我在View类中定义了CArray<int,int>m_plist;编译出现8个错误,主要有:
syntax error : missing ';' before '<'
error C2501: 'CArray' : missing storage-class or type specifiers
error C2059: syntax error : '<'
这是什么错误啊,
2。我理解CArray中第一个int就是这个数组中的存储的数据类型,那么第二个int是表示什么意思呢?看MSDN也没明白。
TYPE
Template parameter specifying the type of objects stored in the array. TYPE is a parameter that is returned by CArray.
ARG_TYPE
Template parameter specifying the argument type used to access objects stored in the array. Often a reference to TYPE. ARG_TYPE is a parameter that is passed to CArray.
谁能给翻译一下
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。