title: unsigned int array from vector size error
body: <p>I am using C++ Builder and am after some help in setting a const int variable to be the size of a vector.</p>
  
  <p>Here is my code that works, just to show you what does work:</p>
  
  <pre><code>vector&lt;appointment&gt; appointmentVector = calCalendar.getAllAppointments();
  
  const int sizeOfArray = 5;
  unsigned int arr[sizeOfArray];
  </code></pre>
  
  <p>If I modify the code to be the following:</p>
  
  <pre><code>vector&lt;appointment&gt; appointmentVector = calCalendar.getAllAppointments();
  
  const int sizeOfArray = appointmentVector.size();
  unsigned int arr[sizeOfArray];
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>[BCC32 Error] Assessment2.cpp(357): E2313 Constant expression required</p>
  </blockquote>
  
  <p>Can I please have some help with this?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I am asking this question as I am having problems with the following code:</p>
  
  <pre><code>unsigned int arr[2] = {1,8};
  unsigned int days;
  TMonthCalendar-&gt;BoldDays(arr, 1, days);
  MonthBoldInfo = days;
  </code></pre>
  
  <p>The BoldDays method requires an unsigned int array, yet I only know of the values at runtime. Can you please advise me on how to find a solution to this problem?</p>