cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
how to use pointer array to reference an
how to use pointer array to reference an object
Jul 15, 2015 at 5:26am UTC
alvingarlic
(2)
want to use pointer arrays to reference LED componennts
LED* m_PurpleLEDArray[2][23];
m_PurpleLEDArray[LeftSide][0]= ui->MyLED1
Jul 15, 2015 at 5:50am UTC
codewalker
(394)
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.