Hi,
I am trying to pass a pointer to a function that accepts a reference to an object. Can someone tell me how to do this?
My code looks something like the following:
So how can I call the function setUpMatrix with ptrMat??Code:UserMatrix mat; UserMatrix *ptrMat; ptrMat = &mat; ...... void setUpMat(UserMatrix &matrix) { matrix[0] = 1; .... }
Thanks for your help
Mark