I want to write a class in which I can externally supply a vector and then the member functions within that class are able to write to the supplied vector. I can't think of how to do it, if it is possible.
I've been able to supply a vector and write to it in the constructor, but I need to be able to do it from a few other of the member functions.
Any help is appreciated.
Aucun commentaire:
Enregistrer un commentaire