Question: Task Matrices in a binary file: A binary file named matrices.bin contains a list of 4 matrices (two-dimensional arrays). Each matrix in the file is

Task Matrices in a binary file: A binary file named "matrices.bin" contains a list of 4 matrices (two-dimensional arrays). Each matrix in the file is codified in the following format: its alphanumerical name, as a string its number of rows, as a 32-bit unsigned integer its number of columns, as a 32-bit unsigned integer all its elements, as 32-bit signed integers The number of matrices in the file will always be 4. matrices.bin name rows cols elements name rows cols elements name rows cols elements name rows cols elements . Implement a C++ program that: reads the file "matrices.bin" and stores each matrix in memory, along with their names and sizes creates a text file named "results.txt" to write the following information for each matrix: . O name of the matrix memory address of each row of the matrix O In the file "results.txt", the matrices should be stored in alphabetical order based on their Assume you have enough resources in your system to store the content of the file "matric 3/4 RAM - this means, you can store the whole file at once and you don't have to use nothrow or handling to verify if the allocation was successful. Requirements: you should divide the problem into functions and you should not use global variables. Hint: the string class provides overloads for the comparison operators
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
