Guest User

Untitled

a guest
Jun 8th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <regex>
  2. #include <iostream>
  3.  
  4. int main() {
  5.     std::string line;
  6.     do {
  7.         std::cout << "Podaj zdanie/wyraz:";
  8.         std::cin >> line;
  9.     } while (!std::regex_match(line, std::regex("[[:alpha:]]+")));
  10.  
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment