meow00
asked on
How do I declare a vector of vector<Animal> ?
Hi experts,
I have a struct
typedef struct{
// blah
}Animal ;
and I need several different Animal vectors ...
i.e. vector<Animal> Dog, Cat, Pig ;
but I want Dog, Cat, Pig to be stored as element of a new vector ?
How do I declare and use such a vector ???
many thanks !
I have a struct
typedef struct{
// blah
}Animal ;
and I need several different Animal vectors ...
i.e. vector<Animal> Dog, Cat, Pig ;
but I want Dog, Cat, Pig to be stored as element of a new vector ?
How do I declare and use such a vector ???
many thanks !
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
note there MUST be a space between the last two "> >" or the compiler will interpret it as the shift operator >>