If I have this float array declaration:
float tables[10];
How can I change the length of the ‘tables’ array to 20?
Another question related to the array in C++:
I can not declare an array something like this:
int length=10;
float newTables[length]; // error C2133: 'newTables' : unknown size
Thanks in advance.
If you are fine defining the size of array during build-time, you can use #define
Or if you need to specify the size of array during runtime, use new