populating a multi-dimensional array

Discussion in 'Software' started by BigR, Jan 11, 2005.

  1. BigR

    BigR Private E-2

    i have to create a function that returns an int[][] array. now i have created an array called returnArray[][]. now the trouble i am having is getting the returnArray[][] to return.

    can anyone help
     
  2. Wookie

    Wookie Sergeant Major

    post your function ill take a look at it.
     
  3. snakefoot

    snakefoot Sergeant Major

    Different solutions:

    Create int*[] and then initialize each int* to point to an int-array (Returns int**)
    Create std::vector<std::vector<int>>
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds