Advertisement
ifinox

Polskie Znaki C

Dec 5th, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <locale.h>
  3. #include <wchar.h>
  4.  
  5. int main()
  6. {
  7.     setlocale(LC_ALL, ".852");
  8.    
  9.     wchar_t * test = L"ąźć";
  10.     if (test[3] == L'\0')
  11.         printf("Tak!\n");
  12.     printf("%ls", L"Język polski jest pięknym \njęzykiem!");
  13.    
  14.     wchar_t str[100];
  15.     str[0] = L'ó';
  16.     printf("Podaj imie z polskimi znakami: ");
  17.     scanf("%ls", str);
  18.     printf("Twoje imie: %ls", str);
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement