Thread: 2D array

  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    205

    2D array

    Hi,
    I need to create a 2D array dynamically. I need an array of arrays of unsigned char.

    The main array would contain pointers to secondary arrays of unsigned char.

    Also I do not know the size of the arrays at compile time. I hope this is clear enough. Thanks for any help
    Amish

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    How about a board search for "dynamic array"
    Hundreds and hundreds of times this has before been asked.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. from 2D array to 1D array
    By cfdprogrammer in forum C Programming
    Replies: 17
    Last Post: 03-24-2009, 10:33 AM
  2. Help with mallocing a 2d array please?
    By Gatt9 in forum C Programming
    Replies: 5
    Last Post: 10-10-2008, 03:45 AM
  3. 2D array pointer?
    By willc0de4food in forum C Programming
    Replies: 4
    Last Post: 04-23-2006, 08:16 AM
  4. Read file in 2D array
    By Chook in forum C Programming
    Replies: 1
    Last Post: 05-08-2005, 12:39 PM
  5. Class Template Trouble
    By pliang in forum C++ Programming
    Replies: 4
    Last Post: 04-21-2005, 04:15 AM