Hi,
I have a class with a constructorI 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 inCode:HTblock(int width, COLORREF color);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.Code:block_pointer->Draw(m_window,x,y);
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



LinkBack URL
About LinkBacks



So are you saying you need to temporarily pop() each HTblock off tower, do a Draw, then push back onto the stack?
CornedBee