fork(1) download
  1. #include <iostream>
  2. #include <fstream>
  3. #include <string>
  4. #include <vector>
  5. #include <cstdio>
  6. #include <locale>
  7.  
  8.  
  9.  
  10. int main()
  11. {
  12. const std::wstring alpha(L"абвгдеёжзийклмнопрстуфхцчшщъыьэюя");
  13. std::locale::global(std::locale(""));
  14.  
  15. std::wprintf(L"lol1\n%ls\nlol2\n",alpha.c_str());
  16. std::wcout << "alphaBEGIN" << std::endl;
  17. std::wcout << alpha << std::endl;
  18. std::wcout << "alphaEND" << std::endl;
  19. }
  20.  
  21.  
Success #stdin #stdout 0s 17736KB
stdin
Standard input is empty
stdout
lol1
абвгдеёжзийклмнопрстуфхцчшщъыьэюя
lol2
alphaBEGIN
абвгдеёжзийклмнопрстуфхцчшщъыьэюя
alphaEND