I need a two dimensional array to input matrix integers.
However, after the Enter is pressed for row 0 the width needs to be set.
Im not sure how to do this since arrays have a fixed or constant value
such as array[10][10]
Each example is a new run of the program
("Enter" just example of user pressing Enter)
OUTPUT SHOULD LOOK LIKE
EX. 1
enter row 0 for the matrix: 1 2 3 "Enter"
enter row 1 for the matrix: 0 1 0 "Enter"
enter row 2 for the matrix: 1 0 9 "Enter"
EX.2
enter row 0 for the matrix: 1 2 3 4 5 6 "Enter"
enter row 1 for the matrix: 0 1 0 0 1 0 "Enter"
enter row 2 for the matrix: 1 0 9 0 1 0 "Enter"
EX.3
enter row 0 for the matrix: 1 2 3 4 5 6 7 8 9 1 "Enter"
enter row 1 for the matrix: 0 1 0 0 1 0 1 0 1 1 "Enter"
enter row 2 for the matrix: 1 0 9 0 1 0 1 0 1 0 "Enter"
*The first line prompting for row 0 is setting the width for the matrix. But i cant figure it out
*The first line after enter is pressed is setting up the entire matrix for the amount of integers inputed. Is the more clear?
There also shouldn't be 2 topics about essentially the same subject. There is a risk that the same things will be said in both, possibly making it a time waster for those who reply.