typedef struct tag***{}***;typedef vector< >;

来源:互联网 发布:淘宝高跟鞋 编辑:程序博客网 时间:2024/03/28 18:15

习惯了vc 6.0  :如这样写

#include <vector>

typedef struct tagSUBITEM
{
 int nwidth;
 int nhieght;
 int nFontsize; 
 int nrow;
 int ncol;
 COLORREF cFont;
 CString strtext;
}SUBITEM, *LPSUBITEM;

typedef vector< SUBITEM> VCTSUBITEM;

//////////////////////////////////////////////////////////////////////////////////////////////////

这样写没问题,但vs 2008 中这样写会有问题的。

#include <vector>

 

using namespace std;                                         // 这一句必须带上

 

typedef struct tagSUBITEM
{
 int nwidth;
 int nhieght;
 int nFontsize; 
 int nrow;
 int ncol;
 COLORREF cFont;
 CString strtext;
}SUBITEM, *LPSUBITEM;

typedef vector< SUBITEM> VCTSUBITEM;

总结一下===================================

 

 

 

原创粉丝点击