fork(51) download
  1. #include <iostream>
  2. #include <locale>
  3.  
  4. int main()
  5. {
  6. // imbue the output stream with a locale.
  7. int i = 45749785;
  8. std::cout << i << "\n";
  9.  
  10. std::cout.imbue(std::locale(""));
  11. std::cout << i << "\n";
  12. }
  13.  
Success #stdin #stdout 0s 4556KB
stdin
Standard input is empty
stdout
45749785
45,749,785