'CArray' : missing storage-class or type specifiers?

上一篇 / 下一篇  2012-09-21 11:19:46 / 个人分类:个人整理

我在类中声明了数组类:

CArray<CPoint,CPoint> m_PointsList;

结果出现一堆错误:

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 ';'

解决方案:在stdAfx.h中加入#include <afxtempl.h> 问题解决


TAG:

 

评分:0

我来说两句

日历

« 2024-05-02  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 61680
  • 日志数: 69
  • 建立时间: 2011-09-01
  • 更新时间: 2012-09-27

RSS订阅

Open Toolbar