Results 1 to 2 of 2

Thread: [C++] 2D array to 1D

  1. #1
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default [C++] 2D array to 1D

    how would you turn a 2d array of m and n points to a 1d array of x points? im sure there's a built in function but I cant find anything relevant on Google

    many thanks in advance!!!

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

  2. #2
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    I'm pretty sure there isn't a built in function for that, or if there is - it's not in the standard libraries.

    You'll just have to nest a for loop and iterate through them manually, shouldn't be too hard.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •