title: Error C2057: expected constant expression
body: <pre><code>if(stat("seek.pc.db", &amp;files) ==0 )
       sizes=files.st_size;
  
  sizes=sizes/sizeof(int);
  int s[sizes];
  </code></pre>
  
  <p>I am compiling this in Visual Studio 2008 and I am getting the following error: 
  error C2057: expected constant expression
  error C2466: cannot allocate an array of constant size 0. </p>
  
  <p>I tried using vector  s[sizes] but of no avail. What am I doing wrong?</p>
  
  <p>Thanks!</p>