moving n-dimentional arrays in c++

This is a discussion on moving n-dimentional arrays in c++ within the C++ Programming forums, part of the General Programming Boards category; Im writing a program on multi-dimensional arrays in c++. I have been instructed to ask the user how many dimensions ...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    1

    Talking moving n-dimensional arrays in c++

    Im writing a program on multi-dimensional arrays in c++. I have been instructed to ask the user how many dimensions he would like the array. Then I take my a one-dimensional array and put it into the N-dimensional array. The N-dimension array then needs to be placed in another M-dimension array (size specified by user). After, the M-dimensional array needs to be sorted. I know how to copy a multi-dimensional array into a one-dimensional or another M-dimensional array, but only when I know how many dimensions. Anyone know the way to go about doing this?
    Last edited by kknla; 02-06-2002 at 05:15 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 01-01-2008, 03:07 PM
  2. Need Help With 3 Parallel Arrays Selction Sort
    By slickwilly440 in forum C++ Programming
    Replies: 4
    Last Post: 11-19-2005, 09:47 PM
  3. Crazy memory problem with arrays
    By fusikon in forum C++ Programming
    Replies: 9
    Last Post: 01-15-2003, 08:24 PM
  4. 3 Dimentional string Arrays
    By paulroseby in forum C Programming
    Replies: 3
    Last Post: 11-27-2002, 05:53 AM
  5. moving arrays
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 02-17-2002, 02:04 PM

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