Hi,
you can't declare an array with a variable value, because the compiler has to know the array size at compilation time.
What you have to do is to use a pointer to create a dynamic array like this:
main()
{
int count = 0;
int *DynArray = NULL;
count = GetArraySizeFunction();
DynArray = new int[count];
if( NULL != DynArray)
{
for( int i0 = 0; count > i0; ++i0)
{
DynArray[i0] = 0;
}
delete[] DynArray;
}
}