Advertisement
Guest User

Untitled

a guest
Apr 27th, 2012
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <iostream>
  2. #include <locale>
  3.  
  4. /**/int main()
  5.     {
  6.     std::locale loc("fr_FR.utf8");
  7.     std::cout<<"User locale: " << loc.name() << std::endl;
  8.     std::string str("àäâéèêëïîöôüû");
  9.     std::cout<<str <<std::endl;
  10.  
  11.     for(std::string::iterator it=str.begin();it!=str.end();++it)
  12.        {
  13.        std::cout << toupper(*it, loc);
  14.        }
  15.  
  16.     std::cout <<std::endl;
  17.  
  18.     return 0;
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement