change the value of a variable of an object that is in a vector of objects that is whithin a class?

Hi,
I'm getting way out of my regular field to do this and I've been running into some stupidly complex situations.
I've declared a class which has a variable "int activacion" and then I've made another class which has a vector of objects of this previous type.
Then I've done another class which has a vector of the lattest.
I'd find it completely normal if I just couldn't go on but the thing is I'm not having trouble READING the values using getValue(), and I just can't seem to be able to change it using the same line of code with setValue();

getElementoVectorCapas(i).getElementoVectorNeuronas(j).getActivacion()<<endl;
This works.

getElementoVectorCapas(1).getElementoVectorNeuronas(0).setActivacion(1);
This doesn't.
It's like the value is fixed. It compiles allright, it just does not change the value.
Thanks in advance.
The get functions probably returns copies of the objects. Calling the set function on a copy will not affect the original objects.
We'll need to see the implementation of your class, and these functions.
Topic archived. No new replies allowed.