Advertisement
lukasd

zadanie 2 zestaw 15 (druga wersja)

Dec 29th, 2017
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. bool g(char a[], int b)
  2. {
  3.     char c=a[b/8];
  4.     c = c&(0b10000000>>(b%8));
  5.     if (c == 0)
  6.     {
  7.         return false;
  8.     }
  9.     else
  10.     {
  11.         return true;
  12.     }
  13. }
  14. void f(char a[], int b, bool c)
  15. {
  16.     if (c == 1)
  17.     {
  18.         a[b/8]=c|(0b10000000>>(b%8));
  19.     }
  20.     else
  21.     {
  22.         a[b/8] = c&(0b01111111 >> (b%8));
  23.     }
  24. }
  25. void kolos1()
  26. {
  27.     char a[20];
  28.     int *ptr;
  29.     ptr = (int*)a;
  30.    
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement