hi people,
i got some troubles with a vector. i need an array of steps( <- i created my own step-class) for loading a stack, because i don't know how many there will be i thought of using a vector. but i actually can't create one and i don't know why.
here my step class:
class step {
public:
step();
step(int a, int b);
int id_sm;
int id_s;
int id_src;
int type;
int dest_vp_x;
int dest_vp_y;
int dest_vp_z;
int dest_vp_dreh;
int dest_x;
int dest_y;
int dest_z;
int dest_dreh;
};
class step {
public:
step();
step(int a, int b);
int id_sm;
int id_s;
int id_src;
int type;
int dest_vp_x;
int dest_vp_y;
int dest_vp_z;
int dest_vp_dreh;
int dest_x;
int dest_y;
int dest_z;
int dest_dreh;
};
To copy to clipboard, switch view to plain text mode
and i tried this one:
QVector<step> steps;
for(int i = 0; i < step_count; i++){
steps.append(new step(42,i));
}
QVector<step> steps;
for(int i = 0; i < step_count; i++){
steps.append(new step(42,i));
}
To copy to clipboard, switch view to plain text mode
but he says no matching function for this call?
anyone knows why or knows an idea what else i could use?
thx
tobi
Bookmarks