title: removing the accents from characters
body: <p>I wrote this code to remove the accents from characters in a string and make the uppercase:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  using namespace std;
  std::wstring input;
  int main()
  {
     input.reserve(255);
     cout &lt;&lt; "Enter string to be converted:" &lt;&lt;endl;
     getline(std::wcin,input);
     for (unsigned int iii=0;iii&lt;input.length();iii++)
      {
        if(input[iii]== L'ő') input[iii]=L'o';
        if(input[iii]== L'ö') input[iii]=L'o';
        if(input[iii]== L'ó') input[iii]=L'o';
        if(input[iii]== L'ü') input[iii]=L'u';
        if(input[iii]== L'ú') input[iii]=L'u';
        if(input[iii]== L'ű') input[iii]=L'u';
        if(input[iii]== L'é') input[iii]=L'e';
        if(input[iii]== L'á') input[iii]=L'a';
        if(input[iii]== L'í') input[iii]=L'i';
        input[iii]=towupper(input[iii]);
      }
   std::wcout&lt;&lt;input;
   return 0;
  }
  </code></pre>
  
  <p>It makes normal characters uppercase, but ignores the accented ones and prints them in lowercase with the accents. Thanks in advance!</p>