Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <cstdlib>
  3.  
  4.  
  5. //ZubkoVladimir2001
  6. //ЗубкоВладимир2001
  7. //Зубко2001Vladimir
  8.  
  9.  
  10. //windows-1251
  11. // 5A 75 62 6B 6F 56 6C 61 64 69 6D 69 72 32 30 30 31
  12. // c7 f3 e1 ea ee c2 eb e0 e4 e8 ec e8 f0 32 30 30 31
  13. // c7 f3 e1 ea ee 32 30 30 31 56 6c 61 64 69 6d 69 72
  14.  
  15.  
  16. //UTF-8
  17. // 005a 0075 0062 006B 006F 0056 006C 0061 0064 0061 006D 0069 FF52 FF12 0030 0030 0031
  18. // 0417 0043 0431 049D 043E 0412 043B 0439 0434 0438 043C 0438 0440 FF12 0030 0030 0031
  19. // 0417 0043 0431 049D 043E FF12 0030 0030 0031 0056 006C 0061 0064 0061 006D 0069 FF52
  20.  
  21. //UTF-16
  22. // \u005A \u0075 \u0062 \u006B \u006F \u0056 \u006C \u0061 \u0064 \u0069 \u006D \u0069 \u0072 \u0032 \u0030 \u0030 \u0031
  23. // \u0417 \u0443 \u0431 \u043A \u043E \u0412 \u043B \u0430 \u0434 \u0438 \u043C \u0438 \u0440 \u0032 \u0030 \u0030 \u0031
  24. // \u0417 \u0443 \u0431 \u043A \u043E \u0032 \u0030 \u0030 \u0031 \u0056 \u006C \u0061 \u0064 \u0069 \u006D \u0069 \u0072
  25.  
  26. char lf[] = "ZubkoVladimir2001";
  27. char rf[] = "ЗубкоВладимир2001";
  28. char lr[] = "Зубко2001Vladimir";
  29.  
  30. wchar_t Llp[] = L"ZubkoVladimir2001";
  31. wchar_t Lrp[] = L"ЗубкоВладимир2001";
  32. wchar_t Llr[] = L"Зубко2001Vladimir";
  33.  
  34.  
  35. char* UpperW1251(char* destination, char* source) {
  36. int count = 0;
  37. for (int i = 0; source[i] != '\0'; i++) {
  38. if (source[i] >= 'a' && source[i] <= 'z')
  39. destination[i] = source[i] - 32;
  40. else if (source[i] >= 'а' && source[i] <= 'я')
  41. destination[i] = source[i] - 32;
  42. else
  43. destination[i] = source[i];
  44. count++;
  45. }
  46. destination[count] = '\0';
  47. return destination;
  48. }
  49. int main()
  50. {
  51. system("pause");
  52. return 0;
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement