Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <regex>
- using namespace std;
- int main()
- {
- string fv;
- regex e ("[aeiouy]",std::regex_constants::icase);
- cout << "Indtast fulde navn: ";
- getline (cin, fv);
- cout << "Mangeling ...\n\n";
- cout << regex_replace(fv, e, "-");
- cout << "\n\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement