-2
votes
2answers
39 views

How to create a object of unlimited dynamic 2D Array in C#

I know how to create an object of 2D "Static size" array in C# using string[,] wordDBArray = new string[5,5] .... but my problem is how to create an object of "Dynamic size" 2D array (i mean without ...
1
vote
4answers
53 views

Manipulate multidimensional array in a function

I read a lot of stuff in here and tried many but i couldn't find a way to pass a multidimensional array to a function in C,change some of the values and somehow return the new array. It's important to ...
0
votes
1answer
29 views

change value of multi-dimensional array

I want to change a value of a multi-dimensional array, but this code keeps telling me "cannot set property '5' (which is the length of the array I guess) of undefined" obj.figures = new Array( new ...
2
votes
3answers
60 views

C - Array of strings (2D array) and memory allocation gets me unwanted characters

I have a tiny problem with my assignment. The whole program is about tree data structures but I do not have problems with that. My problem is about some basic stuff: reading strings from user input ...
0
votes
2answers
32 views

Get ID of canvas element when clicked on

I want to get the ID of the canvas i click on, but with the code I wrote, I always get the ID of the last canvas. Is it somehow possible to get the value of the multidimensional-array? Should I put ...
6
votes
2answers
42 views

MATLAB: How do you call a “cross-section” of an m-dimensional array?

In MATLAB, I have a multidimensional array of floats, A, with m dimensions; that is, its entries can be referenced with A(n_1, n_2, ..., n_m). I don't know if there is a good way to describe this ...
0
votes
2answers
30 views

How to extract one-dimensional array from Two dimensional array in VB.NET

H I'm using VB.NET, and i have a two dimensional array. How do I extract a one-dimensional array from it? I.E the 3rd row. Something like MAT[0] which i would do in java to get the first row from a ...
-3
votes
0answers
8 views

convert an one dimensional array of records to a two dimensional array [closed]

how can I write a subroutine that get an one dimensional array of records and converts it to a two dimensional array. (bye the way records have only three fields) any ideas?
1
vote
2answers
30 views

PHP: Pull values foreach() nested array, run function, return a 2nd level nested array

I've got an array that looks like this: Array ( [0] => Array ( [id] => abc [name] => Charlotte [state] => NC ) [1] => Array ( ...
0
votes
3answers
115 views

An Arraylist of Arrays or os there a better way?

So thanks to the wonderful people here i've managed to get something semi workable, still have a couple bugs but maybe you guys can help me figure it out. So far none of the solution provided were a ...
0
votes
1answer
126 views

Multi Dimensional Array Implementation

I've been working on some code for an assignment and I'm having an issue with nested templated types. I need the following code to create a 3 element array of 3 element arrays (sort of like int ...
1
vote
3answers
48 views

Assigning one 2D array to another

So in my program I have a function which passes into it a 2D array and I want to set another 2D array equal to that 2D array. I am coding this in C++ and can't quite get the syntax right. Right now I ...
0
votes
1answer
25 views

Multi-Dimensional Array from MySQL Query to be output in XML

My code: $go = mysql_query($sql); $fetch = mysql_fetch_array($go); $return = Array($fetch[0],$fetch[1],$fetch[2]); $results = Array( 'body' => Array ( 'entry' => Array ( ...
1
vote
3answers
54 views

Check if array key exists in a multidimentional array

I have an array that's generated using mysql like this: $conn = connect(); $stmt = $conn->prepare("select id, type, status from arraytest"); $stmt->execute(); $myArray = $stmt->fetchAll(); ...
3
votes
2answers
70 views

Sorting a 2d String Array in Java

I created a 2d-array in Java for a project that reads in a file, processes the data, and the prints it back out. The only problem I am having is trying to sort the 2d-array alphabetically. This is an ...

1 2 3 4 5 177
15 30 50 per page