Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- #include <stdio.h>
- #include <string>
- int main()
- {
- unsigned char image[1][1];
- unsigned char **a = new unsigned char*[40];
- for (int i = 0; i < 40; i++)
- a[i] = new unsigned char[30];
- memset(&image, 0, sizeof(a));
- for (int i = 0; i < 40; i++)
- for (int j = 0; j < 30; j++)
- printf(std::to_string(image[i][j]).c_str());
- for(int i = 0; i < 40; i++)
- delete[] a[i];
- delete[] a;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement