T
tehn yit chin
Hi all,
I am starting to learn c++ and have come across a problem that I was
not able to get a hang of.
I have a class defintion such as
class vect
{
public:
vect();
~vect();
private
vector<int> my_ints;
}
Upon compling this, my compiler complains vector is used as type, but
is not defined as a type.
I want to do the above because I want to access my_ints in more than
one method in the vect implementation.
I am probably doing something totally stupid. Any help is appreciated.
thanks,
tyc
I am starting to learn c++ and have come across a problem that I was
not able to get a hang of.
I have a class defintion such as
class vect
{
public:
vect();
~vect();
private
vector<int> my_ints;
}
Upon compling this, my compiler complains vector is used as type, but
is not defined as a type.
I want to do the above because I want to access my_ints in more than
one method in the vect implementation.
I am probably doing something totally stupid. Any help is appreciated.
thanks,
tyc