ok, i have a STL vector of type cadElement, where cadElement is a struct...
Code:
struct cadElement{
int cad_type;
int cad_pick;
double cad_x;
double cad_y;
double cad_z;
double cad_r;
double cad_g;
double cad_b;
double cad_zoom;
};
vector<cadElement> elements;
how can i change a value of one of the elements in the vector??
Code:
((cadElement)elements.at(1)).cad_x=x;
does not work, it will not change the value in the actual vector...