Could you tell me what a dynamic matrix is ? and why and when we have to use it ?
Thank you very much...
Regards,
Nina
Printable View
Could you tell me what a dynamic matrix is ? and why and when we have to use it ?
Thank you very much...
Regards,
Nina
You can find an example of a dynamic 2D array in this FAQ.
As for the definition, a dynamic matrix is a matrix that gets allocated at runtime (i.e. you don't know its size at compile time). This answers your other two questions: we have to use it when we don't know the matrix sizes at compile time, because we don't know them.
Thank you Gabriel very much...
Regards,
Nina.