How to replace vowel letters with a character? : <p>How can I replace vowel letters with a character, for example input: asd output:.sd, so we replaced vowel letters with '.', I tried to do that, but I couldn't don't know why, here is my code: <br> </p>

<pre><code>#include &lt;iostream&gt;
using namespace std;
int main () {
string s;
cin&gt;&gt;s;
if (s=="a")
    s='.';
if (s=="e")
    s='.';
if (s=="u")
    s='.';
if (s=="o")
    s='.';
if (s=="i")
    s='.';
  cout&lt;&lt;s&lt;&lt;endl;

}
</code></pre>

<p>why nothing is changed? input = output?</p>
