Click to See Complete Forum and Search --> : What about a matrix...?


hometown
May 31st, 2003, 05:22 AM
Could you tell me what a dynamic matrix is ? and why and when we have to use it ?

Thank you very much...
Regards,
Nina

Gabriel Fleseriu
May 31st, 2003, 06:28 AM
You can find an example of a dynamic 2D array in this FAQ (http://www.codeguru.com/forum/showthread.php?s=&threadid=231046).

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.

hometown
May 31st, 2003, 02:45 PM
Thank you Gabriel very much...

Regards,
Nina.