Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main(void)
- {
- setlocale(LC_ALL, "Russian");
- string Path = "storozh.txt";
- getchar();
- ifstream Input;
- Input.imbue(locale(locale::empty(), new std::codecvt_utf8<wchar_t>));
- Input.imbue(locale(locale::empty(), new TextMask(", *.-_\//\n\t\v?!1234567890")));
- Input.open(Path);
- string Word;
- while (Input >> Word)
- {
- cout << Word << endl;
- }
- Input.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement