Another challenge solution of creating an Array of window dimensions

If you want to keep the window dimensions as constant, you can initialize them like this:

const int windowDimensions[2]{512, 380};

You can access those values like in the video.

1 Like

Privacy & Terms