When I try to run this program (what I have so far) it says that the program has stopped working and forces me to close. I'm trying to display 10 bmp objects. When I debug I get the message: "Unhandled exception at 0x10004805 in lab9out.exe: 0xC0000005: Access violation reading location 0x00000044." when I get to the displayBMP commands. Can someone help me fix this?
void displayTargets(int target_x, int target_y, int targets, int& no_targets);
bool fireCannonBall(int cannon_x, int cannon_y, int targets, int target_x, int target_y, int no_targets);
void displayResults(int score, int elapsed_time, int shots);
int no_targets = 10;