Thread: Multidim Arrayclass w/ resizing?

  1. #1
    Registered User
    Join Date
    Oct 2002

    Multidim Arrayclass w/ resizing?

    Hi there,

    I'm new to C/C++ and i encountered a Problem which i didn't found solved either in this forum nor on my books i have here.
    I have a file with vectorcoords (3 floats in a row).
    Unfortunatly the filesize is unknown, so it can be 3 rows long or 50 rows long.

    So i need a global multidim arrayclass in which i can redefine the size of both dimensions.
    Anyone a good flexible idea/codepiece?

    Thanks in advance!

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Yup....none better than a std::vector...or maybe a std::list

    You can also look at the other template containers of the STL depending on how you will use that array

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. resizing OpenGL picture control in MFC window
    By stanlvw in forum Windows Programming
    Replies: 1
    Last Post: 03-19-2009, 03:21 PM
  2. [C++/WinAPI] Resizing image
    By jagi in forum Windows Programming
    Replies: 2
    Last Post: 04-04-2005, 07:44 AM
  3. mouse event when resizing window
    By SuperNewbie in forum Windows Programming
    Replies: 4
    Last Post: 05-19-2004, 05:35 AM
  4. Resizing bmp.
    By NewCoder in forum Windows Programming
    Replies: 12
    Last Post: 11-12-2003, 10:04 PM
  5. Resizing a Borland Builder 4.0 Console
    By dalek in forum C++ Programming
    Replies: 5
    Last Post: 07-19-2003, 06:20 AM