Advertisement
Guest User

Untitled

a guest
Jun 28th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. int** z= new int *[wB];
  2. for (int j = 0; j < 8; j ++)
  3. {
  4. z[j] = new int[wB];
  5.  
  6. }
  7.  
  8. for (int n=0; n<8; ++n)
  9. {
  10. for(int m=0;m<wB;++m)
  11. {
  12. int x=n%4;
  13. int y=x*wB;
  14. int p=(*(B+(y+m)));
  15.  
  16. z[n][m]=p;
  17.  
  18. }
  19.  
  20.  
  21. }
  22.  
  23.  
  24. return z;
  25.  
  26. int** z= new int *[wB];
  27. for (int j = 0; j < 8; j ++)
  28. {
  29. z[j] = new int[wB];
  30.  
  31. }
  32.  
  33. for (int n=0; n<8; ++n)
  34. {
  35. for(int m=0;m<wB;++m)
  36. {
  37. int x=n%4;
  38. int y=x*wB;
  39. int p=(*(B+(y+m)));
  40.  
  41. z[6][m]=p;
  42.  
  43. }
  44.  
  45.  
  46.  
  47.  
  48. return z;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement