Thread: 3d array

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    6

    3d array

    Hello i have to create a 3d array and put integers float and chars in the array but i have no clue how to start all i kknow is that i have to used a struct/class could someone give me idea how to do it please

    thanks in advance

  2. #2
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    struct
    {
    int a;
    float b;
    char c;
    }MyStruct[SIZEX][SIZEY][SIZEZ];
    zen

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 3D Array of Bool
    By cybernike in forum C++ Programming
    Replies: 37
    Last Post: 06-28-2007, 11:17 AM
  2. Class Template Trouble
    By pliang in forum C++ Programming
    Replies: 4
    Last Post: 04-21-2005, 04:15 AM
  3. 3D array
    By GSLR in forum C Programming
    Replies: 2
    Last Post: 05-12-2002, 04:00 PM
  4. 3D Array
    By Alextrons in forum Windows Programming
    Replies: 4
    Last Post: 01-11-2002, 01:39 AM
  5. Dynamic 3D array allocation
    By Vulcan in forum C++ Programming
    Replies: 4
    Last Post: 11-21-2001, 02:51 AM