I'm getting to grips with C++ after 3 years coding in managed languages such as C# and Java. Being a cpp novice, I decided that the best move to acquaint myself with the language would be to make a number of data structures... but i'm falling at the first hurdle when attempting to compile my stack. I was wondering if anyone could help me here.
I am getting error C2229
Stack<Object> has an illegal zero-sized array.
I'm declaring my array within the header file, but I don't wish to initialise it until the stacks constructor where the Stacks size can be declared. Am I doing something wrong? Thanks in advance for any help you could give.
PS :
Oh yeah, I find it odd that I need to place 'template <class Object>' prior to every function containing 'Object'. Am i using that line correctly?