cout<<"How many points are there?\n";
int number;
cin>>number;
vector<vector<node*> >points(number,vector<node*>(0));
for(int i=0;i<number;i++) //labels each point
{
node* newNode=new node;
points[i][0]=newNode;
cout<<"Label point "<<i+1<<"\n";
cin>>points[i][0]->label;
}
Why isn't this code working? im trying to assign a pointer to the vector elements, but the program terminates once it gets to the "points[i][0]=newNode" Anyone know whats wrong?