fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <cstdio>
  4. using namespace std;
  5.  
  6. int txtcpy2(const wchar_t *, const wchar_t *, int);
  7.  
  8. int main (int argc, char** argv) {
  9. const wchar_t *a = L"сколько волка НИ корми, он все равно в лес смотрит.";
  10. const wchar_t *b = L"Сколько волка не корми всеравно он смотрит в лес";
  11.  
  12. txtcpy2(a, b, wcslen(a));
  13. }
  14.  
  15.  
  16. int txtcpy2(const wchar_t *a, const wchar_t *b, int lena) {
  17. //std::wcout << std::wstring(a) << "\n" << std::wstring(b);
  18. fwprintf(stdout, L"%ls\n", a);
  19. fwprintf(stdout, L"%ls\n", b);
  20. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
??????? ????? ?? ?????, ?? ??? ????? ? ??? ???????.
??????? ????? ?? ????? ???????? ?? ??????? ? ???