Gast
#2570232
hi,
ich habe das folgende kleines Programm geschrieben.Beim compilieren
bekomme ich Fehler
Error 2 expected 'uint8_t *' but argument is of type 'uint8_t (*)[5]'
Error 3 subscripted value is neither array nor pointer
Was los ist weib ich nicht. Ich brauche Hilfe
#define LINE 5
#define COLUMN 5
int main()
{
uint8_t u8MyArray[LINE][COLUMN];
vInitArray(u8MyArray);
}
void vInitArray(uint8_t *Array)
//void vInitArray(uint8_t (*Array)[LINE][COLUMN]);
{
uint8_t u8i=0;
uint8_t u8j=0;
for(u8j=0 ; u8j<LINE ; u8j++)
{
for(u8i=0 ; u8i<COLUMN ; u8i++)
{
Array[u8i][u8j] = ((u8i)*(u8j));
}
}
}