void GetKey(int date, unsigned char[] key)
{
}
I am trying to pass unsigned char array t a function but I get an error "expected a ')'" where "key" variable is.
Use template function:
template<size_t N>
void GetKey(int date, unsigned char(&key)[N])
{
}
unsigned char(&key)[N] actually be? Sorry if these are stupid questions. I'm trying to rebuild my C++ knowledge ground-up.