guys can anyone out there tell me if it's actually possible
to innitialise a 2D array by having it loaded from the keyboard
(i.e entered by the user)? i have search everywhere to see if
there's a code of such; all i can see is loading it (2D array)
from a file and not the keyboard.
if it's really possible i'll be happy to see how it's done.
thanks.

Recommended Answers

All 2 Replies

I know a way of doing this and I'll post an example for you but what kind of data do you want? Do you want it to be an array of cstrings?
List[length][numberofentries]
or
List[row][col]

I made a snippet here.
This takes in integers and stores them to a multidimensional array.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.