Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

C++ Function Declaration for Matrix

Hi Guys,

I tend to write my functions at the end of my main functions. I'm having a little trouble making my function declarations a little neater.

Lets say my function is:

void function(int height, int width, Mat matrix, Mat  matrix2, string stringName){
//code
}

I tried declaring

void function(int, int, Mat, Mat, string);

but this doesn't work. How do you put the argument for a matrix?

Thanks in advance guys!