V
Victor Hannak
I have a class that needs to reference a const array in several of its
methods. Where should I put the declaration/initialization of this array so
that it is only created once when the class is instantiated, but is visible
to all of the methods of only this class ?
const unsigned short ConstantVectorWidth = 10;
const float ConstantVector[ConstantVectorWidth] =
{5,10,15,20,25,30,35,40,45,50};
Does this syntax look correct?
methods. Where should I put the declaration/initialization of this array so
that it is only created once when the class is instantiated, but is visible
to all of the methods of only this class ?
const unsigned short ConstantVectorWidth = 10;
const float ConstantVector[ConstantVectorWidth] =
{5,10,15,20,25,30,35,40,45,50};
Does this syntax look correct?