My program treats matrixes reading them from a file. Their size is given in the beginning of the file. How to allocate memory for the matrix?
For this you need to place your matrix not in the stack, but in a heap. To allocate memory for objects in the heap, use the operator new. You can allocate memory for the matrix by several blocks. To do this you need to allocate memory for an array of string pointers. Then for each pointer using the new operator allocate memory for the string. The syntax for using such a matrix is similar to the syntax of regular matrix:
Thank you very much for your help throughout my endeavors with calculus. You have allowed me to gain credit for a course that would have been merely impossible to achieve on my own. I can't be thankful enough for what your service has given me. I can assure you I will be in contact with you guys soon. Again, thank you very much and enjoy the rest of summer!