title: C++ Set Locale across the entire program
body: <p>I"m looking for a way to set the locale across the entire program, if that"s even possible.</p>
  
  <p>I set the locale in my main function like this:</p>
  
  <pre><code>int main()
  {
      setlocale(LC_ALL, "");
      ....
      return 0;
  }
  </code></pre>
  
  <p>However, it doesn"t set the locale to my different classes/methods across the entire program. I"d rather not write this line on top of every method that will print on the screen and creating a C++ locale object and passing it around doesn"t quite feel acceptable.</p>
  
  <p>Thank you for your time.</p>