Advertisement
Guest User

Untitled

a guest
Mar 17th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. void main(void)
  2. {
  3.     setlocale(LC_ALL, "Russian");
  4.     string Path = "storozh.txt";
  5.     getchar();
  6.     ifstream Input;
  7.     Input.imbue(locale(locale::empty(), new std::codecvt_utf8<wchar_t>));
  8.     Input.imbue(locale(locale::empty(), new TextMask(", *.-_\//\n\t\v?!1234567890")));
  9.     Input.open(Path);
  10.     string Word;
  11.     while (Input >> Word)
  12.     {
  13.         cout << Word << endl;
  14.     }
  15.     Input.close();
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement