jeudi 26 novembre 2015

Vector C++ - Insert At

I Want to pass class pointer as paramter and new vector should contain existing vector values and new value which is insert at particular index

void InsertAt(int point, myclass *point2Array)
{
  const MtPoint2d * PointArray = point2Array->GetData();
  if (PointArray == NULL)  { return; }
  m_PointVectors.insert(m_PointVectors.begin() + ptNum, *point2Array);
}

this is not wortking can u tell any other soulution.not giving correct value. bacuse get data not getting corect value ..any other way

Aucun commentaire:

Enregistrer un commentaire