在stdafx.h中:
#include <vector>
using namespace std;在dbvars.h中定义结构:
struct STT_CARD_DISCOUNT
{
char sztypeCode[4]; // 有很多重复
int intervalStart;
int intervalEnd;
int iDiscount;
};
....  //其它结构
class CDBVars         //定义类,也是在dbvars.h中
{
         .....
vector <STT_CARD_DISCOUNT, STT_CARD_DISCOUNT> m_vlistType;
         .....
};
#endif
// dbvars.h文件结束编译时,发生很多错误,其中下边的是第一个错误,其它的应该都是同一个问题引起的:d:\program files\microsoft visual studio\vc98\include\vector(24) : error C2039: 'size_type' : is not a member of 'STT_CARD_DISCOUNT'
        e:\exp\dbreadtest\dbvars.h(11) : see declaration of 'STT_CARD_DISCOUNT'如果解决?好象是哪里没有设置正确造成的