I'm having a problem with vectors. I have a vector of type class and that class also has a vector in it and I am having problems assigning values to the vectors, I am using VC++ ver6.0
_______________ _________
class X{
public:
vector<Y> yVect;
}
class Y{
public:
vector<Z> zVect;
}
class Z{
public:
double x;
double y;
}
when I say something like:
xVect.at(0).yVe ct.(0).x = 5;
I get problems! Any help please. Thank you.
_______________ _________
class X{
public:
vector<Y> yVect;
}
class Y{
public:
vector<Z> zVect;
}
class Z{
public:
double x;
double y;
}
when I say something like:
xVect.at(0).yVe ct.(0).x = 5;
I get problems! Any help please. Thank you.
Comment