Question: Write a function definition called initializeStructures that takes to a character 1D array, the size of the 1-D array, a 2-D integer array, the number
Write a function definition called initializeStructures that takes to a character 1D array, the size of the 1-D array, a 2-D integer array, the number of rows for the 2-D array, and an input file stream reference. The function should fill a character array with random ASCII values between a and z, and fill the 2-D array with values from the file. Note: the function must not open any file stream; it is a parameter to the function. (15pts) Hint: you must use the static_cast operator on the 1-D character array. The ASCII values for 'a' = 97 and 'z' = 122.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
