title: Make a message box function in console and pass arguments (text) to it
body: <p>The code bellow will wrap the <code>std::string message</code> in a self adjusting double lined box, like in the old school DOS era.</p>
  <p>How can I pass to this function a custom text message like <code>Msg_Box(print this custom text);</code> ?</p>
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  
  void Msg_Box()
  {
      // Box edges and corners (all double thick line)
      // T for top, B for bottom, L for left, R for right
      const char TB = '\xCD'; // 205
      const char LR = '\xBA'; // 186
      const char TL = '\xC9'; // 201
      const char TR = '\xBB'; // 187
      const char BL = '\xC8'; // 200
      const char BR = '\xBC'; // 188
  
      std::string message = &quot;To be, or not to be...&quot;;
      std::string margin = &quot;  &quot;;
      std::string line(message.length() + 2 * margin.length(), TB);
  
      std::cout &lt;&lt; TL &lt;&lt; line &lt;&lt; TR &lt;&lt; std::endl;
      std::cout &lt;&lt; LR &lt;&lt; margin &lt;&lt; message &lt;&lt; margin &lt;&lt; LR &lt;&lt; std::endl;
      std::cout &lt;&lt; BL &lt;&lt; line &lt;&lt; BR &lt;&lt; std::endl;
      std::cout &lt;&lt; std::endl;
      
  }
  
  int main()
  
  {
          Msg_Box(); 
          return 0;
  }
  </code></pre>