title: setw() not working properly on my code
body: <p>I'm having problem with my code not sure if it's a bug or there is something wrong with my code.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  using namespace std;
  
  int main()
  {
  cout &lt;&lt; setfill('*') &lt;&lt; setw(80) &lt;&lt; "*";
  cout &lt;&lt; setw(21) &lt;&lt;  "Mt.Pleasant Official Billing Statement" &lt;&lt; endl;
  cout &lt;&lt; setfill('*') &lt;&lt; setw(80) &lt;&lt; "*" &lt;&lt; endl;
  return 0;
  }
  </code></pre>
  
  <p>Adding manual spaces works but I want to add spaces programmatically but when I tested the application this what it looks like :</p>
  
  <p><img src="https://i.stack.imgur.com/vKs2W.png" alt="enter image description here"></p>