A program I am trying to create must ask for a user input to the size of a matrix, and then read in data from a file to put into said matrix. The only issue is that the information can only be input with pointers and can only use pointer arithmetic. The complete specifications are as follows:
- Read in dimensions of a matrix
- Prompt for a filename and read in the data from that file into the matrix
- Utilize an array of structures, where a single structure holds the mean, median, and standard deviation for a column in the matrix.
- All of your code should access the memory locations via pointers and pointer arithmetic.
I was wondering if there is any way to call for the data within the matrix without using array notation (e.g. myArray[0][1])? I have always known to use that notation and have no understanding of how else to seperate the given data without that notation. Any help would be greatly appreciated.