CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2003
    Posts
    893

    What about a matrix...?

    Could you tell me what a dynamic matrix is ? and why and when we have to use it ?

    Thank you very much...
    Regards,
    Nina

  2. #2
    Join Date
    Jun 2001
    Location
    Switzerland
    Posts
    4,443
    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.
    Gabriel, CodeGuru moderator

    Forever trusting who we are
    And nothing else matters
    - Metallica

    Learn about the advantages of std::vector.

  3. #3
    Join Date
    Apr 2003
    Posts
    893

    ..

    Thank you Gabriel very much...

    Regards,
    Nina.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured