J
Jayw710
hi all,
this should be basic, but I can't seem to get the right syntax.
i have a struct
struct PTStruct
{
int x;
int y;
};
class abc
{
public:
abc();
...
std::vector<PTStruct> mypoints;
}
void abc::abc() : mypoints(100)
{
}
and i'm trying to get all the PTStruct variables (x and y) in mypoints to be
initialized to zero, but I'm screwing up the syntax somehow.
Any suggestions how this should be done?
Thanks to all!
Jay
this should be basic, but I can't seem to get the right syntax.
i have a struct
struct PTStruct
{
int x;
int y;
};
class abc
{
public:
abc();
...
std::vector<PTStruct> mypoints;
}
void abc::abc() : mypoints(100)
{
}
and i'm trying to get all the PTStruct variables (x and y) in mypoints to be
initialized to zero, but I'm screwing up the syntax somehow.
Any suggestions how this should be done?
Thanks to all!
Jay