Declare array with declared constant
I'm trying to do something like this:
const int array_size = 5;
string stuff[array_size];
My compiler won't let me compile this, even though array_size is a
constant. Is there a way to do this without dealing with dynamic arrays?
Edit: "error C2057: expected constant expression"
No comments:
Post a Comment