title: "int" and "const int" initialization and conversion in C++
body: <p>I wrote the following line of code in my program:</p>
  
  <pre><code>const int *dims = {4};
  </code></pre>
  
  <p>but it reported me the following error:</p>
  
  <p><strong>"a value of type int cannot be used to initialize an entity of type const int"</strong></p>
  
  <p>Can anyone tell me what happened and teach me a way to fix it?(On the condition that the array of <code>dims</code> is still <code>const</code>)</p>