Writing variables in a vector
Hey,
I have a vector of structs, and I want to write one variable at one point in the code and the other variable and a different one. Here's the struct:
Code:
struct structLink
{
CString EDFParam;
int Index;
CString BParam;
};
and I want to write the BParams in one loop and then the coresponding paramName in a different one.
I'm teying to use something like this:
Code:
vars.vectParmSelected[pos].EDFParam = FAD.vectDL[i].Param;
pos++;
and then the same methood to write to the BParam. The above line is the first time the vector is used.
How would it be possible to do this?