Download MetaTrader 5

How to write reusable codes?

To add comments, please log in or register
Publish your application in the Market - 7 million potential clients will see it
williamwong
632
williamwong 2010.08.11 15:37 

I have a requirement to use stack in my indicator.  Stack, as most of us know,  is FIFO ADT with Push and Pop operation.

Question is: How do I write a stack that can handle generic types?  i.e., it should be able to Push and Pop string, integer, struct or even objects whenever I have a need for it.

To add comments, please log in or register