Well, I got it to read in just the 2D array part, but how do I read in the number of rows and columns, and then remove that from the input so that the program doesn't think that they are part of the array?
Hello, I'm having trouble trying to read in input such as this:
3 4
abcd
efgh
ijkl
And then placing it into a 2D array. The 3 and 4 are the number of rows and columns. Any ideas on how to go about doing this?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.