Why can\'t I do something like this:
int size = menu.size; int list[size];
Is there anyway around this instead of using a vector? (arrays a
Since list is allocated on the stack, its size has to be known at compile time. But here, size is not known until runtime, so the size of list is not known at compile time.
list
size