Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class my_fr : public std::numpunct< char > {
- protected:
- std::string do_truename() const { return "vrai"; }
- std::string do_falsename() const { return "faux"; }
- };
- int main() {
- std::cout.imbue(std::locale(std::locale(), new my_fr));
- std::cout << std::boolalpha;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement