fork download
  1. #include <iostream>
  2.  
  3. int main () {
  4. setlocale(LC_ALL, "rus");
  5. char c;
  6. std::cin >> c;
  7.  
  8. switch (c) {
  9. std::string word;
  10. std::cin >> word;
  11. for (int i = 0; i < word.size(); ++i)
  12. {
  13. char x = word[i];
  14. if (std::isalpha((unsigned char)x))
  15. {
  16. // some code
  17. }
  18. }
  19. return 0;
  20. }
  21. }
Success #stdin #stdout 0s 5600KB
stdin
s
stdout
Standard output is empty