Obtain the square definition from a text file. The file should contain a square matrix composed of zeros for shaded squares and nonzero values for white squares. The input for Figure 3-24 is shown below. The matrix should be allocated from dynamic memory.
At the end of the program, print a report showing the number of white blocks and the number of squares in each.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here