error C2143: syntax error : missing ';' before '<'报错解决办法

来源:互联网 发布:北京搜索引擎优化seo 编辑:程序博客网 时间:2024/05/21 19:28
extern CList<BLOCKINFO,BLOCKINFO&>g_blocklist;

extern CList<BLOCKINFO,BLOCKINFO&>g_usedblocklist;

extern void DisplayString(int x, int y, const char* str,int textcolor,int backcolor);

提示报错的话,加using namespace std;这个是没用的,其实缺少clist的头文件,只需要在报错的地方加上头文件#include <afxtempl.h>即可!

阅读全文
0 0