Advertisement
Trapov

Untitled

Apr 18th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. // biHeight = 512
  2. // biWidth = 512
  3. char ** array_of_pixels = new char*[buf_i.biHeight];
  4. for ( unsigned int i = 0 ; i > buf_i.biHeight ; i++) {
  5.     array_of_pixels[i] = new char [buf_i.biWidth];
  6. }
  7. array_of_pixels[2][0] = 242; // crash
  8. std::cout << array_of_pixels[2][0] << std::endl; // crash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement