Advertisement
Dunedune

Untitled

Apr 2nd, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. class my_fr : public std::numpunct< char > {
  5. protected:
  6.     std::string do_truename() const { return "vrai";  }
  7.     std::string do_falsename() const { return "faux"; }
  8. };
  9.  
  10. int main() {
  11.     std::cout.imbue(std::locale(std::locale(), new my_fr));
  12.     std::cout << std::boolalpha;
  13.    
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement