Array of classes with elements not accessable?
CPoint m_PointGrid[256];
// later in a loop
m_PointGrid.x = 0;
This fails with :
subscript is not of integral type
and
left of ''.x'' must have class/struct/union type
Anyone have any clues as to what I''m doing wrong here?
Many thanks
Chris
Chris Brodie
Dohhh... The board ate my code..
I shouldn''t need to cast it as a CPoint as it already is...
Any hints
Chris
CPoint m_PointGrid[256];// later in a loopm_PointGrid[i].x = 0;
I shouldn''t need to cast it as a CPoint as it already is...
Any hints
Chris
Chris Brodie
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement