how to use pointer array to reference an object

want to use pointer arrays to reference LED componennts

LED* m_PurpleLEDArray[2][23];

m_PurpleLEDArray[LeftSide][0]= ui->MyLED1

So you have declared a double dimension array of pointer to LED.
assuming the type of ui->MyLED1 is LED * the statement should work (except semi colon at the end is missing)

Do you have any specific question/problem besides this?
Topic archived. No new replies allowed.