I am currently unsure how i can output and display a certain attribute of a vector, like x. Please help i am totally new to vectors and i can't seem to find an example that i can relate to.
PointTwoD.h
1 2 3 4 5 6 7 8 9 10 11
class PointTwoD {
private:
int x,y;
vector<int>vertices;
public:
void setX(int);
void setY(int);
vector<int> getX();
vector<int>getY();
}