Need help with vector matrix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmstarke
    New Member
    • Apr 2008
    • 1

    Need help with vector matrix

    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?
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Originally posted by dmstarke
    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?
    You have to use cin to get the input from the user.
    Go through this link to get an idea about the cin


    Raghuram

    Comment

    Working...