#include <iostream>
#include <vector>
#include <algorithm>
std::string RemoveVowels(std::string str) {
std::vector<char> vowels = {'a', 'e', 'i', 'o', 'u',
'A', 'E', 'I', 'O', 'U'};
for (int i = 0; i < str.length(); i++) {
if (find(vowels.begin(), vowels.end(), str[i]) != vowels.end()) {
str = str.replace(i, 1, "");
i -= 1;
}
}
return str;
}
int main()
{
std::string str = "C++ PHP Java Python VB.NET Rust";
str = RemoveVowels(str);
std::cout << str;
}
/*
run:
C++ PHP Jv Pythn VB.NT Rst
*/