what can I do… I need to pass a matrix into the function?
error C2664: 'WriteMatrixOut' : cannot convert parameter 1 from 'char [480][640]' to 'char ** '
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
class Image
{
public:
char mm[480][640];
void WriteMatrixOut(char **mm);
}
Declare it as
void WriteMatrixOut(char mm[480][640]);instead.