在VC2008中使用vector時的C2143錯誤

錯誤提示如下:

Error    1    error C2143: syntax error : missing ';' before '<'    

d:\work\hcjy_dma\src\cvs2dat\datfile.h    35    cvs2dat

有人說這是VC的一個BUG,都2008了,是BUG也該改了呀
有人說:

#ifdef   _DEBUG  
  #define   new   DEBUG_NEW
#endif  
   
把#include   <vector>放在這幾句前面

也不管用,其實很簡單,是因爲:

用標準庫就要加上 
#include   <vector>   
using   namespace   std;

疏忽,疏忽... :-(


~~The END~~
尹曙光
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章