2D array

This is a discussion on 2D array within the C++ Programming forums, part of the General Programming Boards category; Hi, I need to create a 2D array dynamically. I need an array of arrays of unsigned char. The main ...

  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
    32,821
    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, 11:33 AM
  2. Help with mallocing a 2d array please?
    By Gatt9 in forum C Programming
    Replies: 5
    Last Post: 10-10-2008, 04:45 AM
  3. 2D array pointer?
    By willc0de4food in forum C Programming
    Replies: 4
    Last Post: 04-23-2006, 09:16 AM
  4. Read file in 2D array
    By Chook in forum C Programming
    Replies: 1
    Last Post: 05-08-2005, 01:39 PM
  5. Class Template Trouble
    By pliang in forum C++ Programming
    Replies: 4
    Last Post: 04-21-2005, 05:15 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21