I'm doing a project for class, and I have to work with Dynamic arrays. I am trying to setup a constructor for the image class that sets each pixel to black. *pixels is an array of Struct RGB. Here is some sample code.
When I run it, I just simply declare an Image object for testing. I am getting an unhandled exception. I think my constructor is not setting each pixel to the constant black. How can I fix this constructor?