A std::vector is a dynamic container, there is no mechanism to restrict its growth. To allocate an initial size:
std::vector v(10);
C++11 has a std::array that would be more appropriate:
std::array my_array;
If your compiler does not support C++11 consider using boost::array:
boost::array my_array;