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:
ptrMat = &mat;
void setUpMat(UserMatrix &matrix)
matrix = 1;
Thanks for your help