0

Edit: I do not want to only copy the data of Array into a vector. Actually i need the vector to store the total Array as the element. The Problem is that when i put the name of array in the vector, it was wrong. My question is different with the How do you copy the contents of an array to a std::vector in C++ without looping?

struct SPoint
{
  float32_t    ftX;
  float32_t    ftY;
};
std::vector<SPoint*> vecSPoint;
SPoint* pointArray[3]; // assume that there are already three pointers in this Array

I want to put this Array in the vector. But it does not work:

vecSPoint.pushback(pointArray);

What is the Problem and how can I solve it?

Community
  • 1
  • 1
rayallen
  • 93
  • 1
  • 1
  • 7

0 Answers0