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:
#include <iostream>
using namespace std;
int main () {
string s;
cin>>s;
if (s=="a")
s='.';
if (s=="e")
s='.';
if (s=="u")
s='.';
if (s=="o")
s='.';
if (s=="i")
s='.';
cout<<s<<endl;
}
why nothing is changed? input = output?