I need to write a program that uses vectors to create a 2 dimensional array in which the user is prompted to input the dimensions of the matrix and then enter the elements one by one. Im having troubles figuring out how to take the numbers that the user types and enter it into the array. Any ideas?
Need help with vector matrix
Collapse
X
-
You have to use cin to get the input from the user.Originally posted by dmstarkeI need to write a program that uses vectors to create a 2 dimensional array in which the user is prompted to input the dimensions of the matrix and then enter the elements one by one. Im having troubles figuring out how to take the numbers that the user types and enter it into the array. Any ideas?
Go through this link to get an idea about the cin
Raghuram
Comment