Declaration of custom 'class' inside another class

Hey, I have made an Array class. I use this class like this:
Array<DataType> myArray(5); ......So, I am creating an array of type DataType with an initial size of 5. My problem is, I am trying to put this declaration inside one of my classes. I get alot of syntax error: 'constant'.....I am assuming this is because the declaration looks like that of a member function. How can I avoid that error?
If you want to use the constructor, call it in the outer classes intializer list and declare myArray normally.
I don't understand what you mean, my outer class is my generic array class, I don't want to specify a size inside that class
Hi, can someone please explain what zhuge means?
Topic archived. No new replies allowed.