我有一个接受类对象的向量,但是当我尝试将创建的对象推回向量中时,我遇到了这些问题并且不知道如何解决它。谁能帮帮我?
void populate( std::vector<NV*> vNav, NV *nVess);
创建对象类
NV vPB;
对象类变量匹配
vPB.name = namE;
vPB.type = typE;
vPB.length = lengtH;
vPB.speed = speeD;
vPB.range = rangE;
vPB.serialNum = serialNuM;
vPB.serialNum = beaM;
vPB.displacement = displacemenT;
vPB.draft = drafT;
vPB.isActive = isActivE;
namE = name;
typE = type;
lengtH = length;
speeD = speed;
rangE = range;
serialNuM = serialNum;
beaM = beam;
displacemenT = displacement;
drafT = draft;
isActivE = isActive;
vNav.push_back(vPB);
不断收到错误错误 C2664:无法将参数 1 从 'N_V::NV' 转换为 'N_V::NV *&&'
并且还不断收到错误 IntelliSence 没有重载函数的实例