Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <regex>
- #include <iostream>
- int main() {
- std::string line;
- do {
- std::cout << "Podaj zdanie/wyraz:";
- std::cin >> line;
- } while (!std::regex_match(line, std::regex("[[:alpha:]]+")));
- }
Advertisement
Add Comment
Please, Sign In to add comment