title: C++ const casting
body: <p>I am trying to print the value of a const but it is not working. I am making a return to C++ after years so I know casting is a possible solution but I can't get that working either.</p>
  
  <p>The code is as follows:</p>
  
  <pre><code>  //the number of blanks surrounding the greeting
      const int pad = 0;
  
      //the number of rows and columns to write
      const int rows = pad * 2 + 3;
      const string::size_type cols    =       greeting.size() + pad * 2 + 2;
  
      cout &lt;&lt; endl &lt;&lt; "Rows : " + rows;
  </code></pre>
  
  <p>I am trying to print the value of 'rows' without success. </p>