Help with Class and Pointer Syntax
Hi,
I have a class with a constructor
Code:
HTblock(int width, COLORREF color);
I also have a stack of pointers of type HTblock called tower. I need to Apply Draw() function for each HTblock in the "tower" stack as in
Code:
block_pointer->Draw(m_window,x,y);
im having trouble getting this to work as i've tried different methods to do this including assigning a temporary variable to get from the tower.push() call.
however i cant seem to get a syntax that works. I can clarify if i am not clear in what im trying to do.
Help would be much appreciated,
Thanks,
Cram