#Initializing array in a constructor

4 messages · Page 1 of 1 (latest)

weak inlet
#

Hello. I'm currently trying to make a class where the size of an array is defined in it's constructor. I've recently been refreshing myself with cpp, and do not remember how you would do something like this given things being initialized on declaration. How would I declare this array in the header file?

prime shadowBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

dusk sparrow
prime shadowBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.