title: C++ How to ignore the difference between upper and lower when checking Anagram?
body: <pre><code>bool isAnagram(string s1, string s2){
     if(s1.length() != s2.length())
        return false;
  
    for(int i =0; i &lt;s1.length();i++){
        int pos = (s2.find(s1[i]);
                   if(pos&lt;0)
                   return false;
                   s2.erase(pos,1);
  
                 }
                   return true;
  
                   return false;
  
                 }
  </code></pre>
  
  <p>I write the code about checking Anagram but ignore the requirement of ignoring difference between upper and lower. I have no idea about that. Can you help me? Thanks!</p>