DmytriE 0 Newbie Poster

Hi everyone!

In class we just learned about pointers and the their uses. We have been given a project where we need to allocate dynamic memory for any number of matrices (up to four). All four of the matrices addresses are stored in a matrix poiner. All of this must be done outside of the main function.

The user inputs the following into the prompt: A 2 3 5 2 5 3 0 9. 'A' is the name of the matrix, 2 and 3 represent the rows and columns, respectively, and the rest of the numbers is the user's data. How can I store those numbers into the matrix?

Sorry if I've confused you as I'm confused myself. :icon_neutral: Let me know and I'll see if I can clear it up.

Thanks for any help!

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.