title: How to align output to center of screen - C++?
body: <p>I am working on a C++ console app. I want to execute and print all the stuff at the centre of app window screen (horizontally + vertically) as shown below.</p>
  <pre><code> --------------------------------
  |                               |
  |                               |
  |         User : xyz            |
  |         Pass : ****           |
  |                               |
  |                               |
   --------------------------------
  </code></pre>
  <p>I want to run my whole program as pointed out above. Is there any way to do so? Any help or suggestion would be appreciated.</p>