Pushok

Learn how to out Russian with C++

Jan 30th, 2014
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <conio.h>
  3.  
  4. #include <Windows.h>
  5.  
  6. #include <iostream>
  7.  
  8. int main(void)
  9. {
  10.     wchar_t* str = L"Привет, мир!";
  11.     DWORD d;
  12.  
  13.     _cwprintf(str);
  14.     WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE), str, lstrlen(str), &d, nullptr);
  15.  
  16.     std::cin.get();
  17.  
  18.     return 0;
  19. }
Add Comment
Please, Sign In to add comment