SetSize
Set the size of the vector
BOOL SetSize( UINT nSize, int nGrowBy = -1 )
Returns TRUE on successful exit or FALSE on error.
EX1
void vectorbase_SetSize_ex1() { // Declare vector object vector vec; // Set its size and fill with some data vec.SetSize(361); for( int ii = 0; ii < 361; ii++ ) vec[ii] = cos(ii * PI / 180); for (int jj = 0; jj < vec.GetSize(); jj++) printf("%f ",vec[jj]); }
Dynamically set the size of (number of elements in) a vectorbase derived object.
vectorbase::GetSize, Dataset::SetUpperBound
origin.h