did you try it? 'cuz when i did that, it sent me the error Error 13: Constant expression required i don't use a vector because it is not what i need...
I just looked it up. Arrays cannot be intialized with a non-const value or a value unknown at compile time. That's why it failed.
You will have to initailize it with the largest possible size required.
Perhaps use a pointer with a limlit set in a loop by a user determined variable might be the way to go?
I don't know WHY you need to do thsi, so it's hard to guess what other methods might be appropriate.