Lavorando con le matrici, mi sono trovato in questa situazione:
unsigned char VAR[200]
VAR = funz(id);
in un altro file:
unsigned char MATR[255][200]
unsigned char *funz(int id) {
return (MATR[id]);
}
In altre parole vorrei trasferire tramite questa funzione, tutti i 200 valori contenuti in MATR[id], in VAR.
Ed ecco che il simpatico VS2005 risponde:
error C2440: '=' : cannot convert from 'unsigned char *' to 'unsigned char [200]'
1> There are no conversions to array types, although there are conversions to references or pointers to arrays :master:
E ora?...