向各位高手请教:
1、在vc中vector如何使用?我加了include <vector>也没用,编译时不认识vector。我程序中的语句是:vector <int> masksVector;
2、 int width,height;
......//各变量初始化
MaskValueElement *resultBuffer;
for(int i=0;i<width*height;i++)
{
resultBuffer[i]=new MaskValueElement();
}
这段有什么问题?其中MaskValueElement是自定义类
1、在#include <vector>后加上
using namespace std;
use namespace <std>
或者在程序中的vector前面加上std::
1、use namespace <std>或者在程序中的vector前面加上std::如下所示
std::vector<CString> VectorImageNames;
2、
MaskValueElement * resultBuffer = new MaskValueElement[width * height];