tagged [multidimensional-array]
Convert multidimensional array to jagged array in C#
Convert multidimensional array to jagged array in C# I have a C# WCF webservice which is called by two VB 6 project. The target VB project is sending to the client VB project a multidimensional array....
- Modified
- 23 May at 12:32
How do I Sort a Multidimensional Array in PHP
How do I Sort a Multidimensional Array in PHP I have CSV data loaded into a multidimensional array. In this way each "row" is a record and each "column" contains the same type of data. I am using the ...
- Modified
- 30 Oct at 09:39
PHP foreach loop through multidimensional array
PHP foreach loop through multidimensional array I have an array: ``` $arr_nav = array( array( "id" => "apple", "url" => "apple.html", "name" => "My Apple" ), array( "id" => "orange",...
- Modified
- 9 May at 08:46
Reading from Excel (Range into multidimensional Array) C#
Reading from Excel (Range into multidimensional Array) C# How would I read from an Excel sheet and load the marked selection (Area) into an multidimensional array? A column in Excel could itself be a ...
- Modified
- 20 Sep at 14:49
Matrix Transpose in Python
Matrix Transpose in Python I am trying to create a matrix transpose function for python but I can't seem to make it work. Say I have and I want my function to come up with So in other words, if I were...
- Modified
- 24 Apr at 19:50
Passing a 2D array to a C++ function
Passing a 2D array to a C++ function I have a function which I want to take, as a parameter, a 2D array of variable size. So far I have this: And I have declared an array elsewhere in my code: However...
- Modified
- 25 Feb at 18:36
Converting 2 dimensional array to Single dimensional in C#?
Converting 2 dimensional array to Single dimensional in C#? I am converting 2dimensional array to Single dimensional in C#. I receive the 2 dimensional array from device (C++) and then I convert it to...
- Modified
- 5 Sep at 07:34
Serializing Multidimensional array to JSON with ServiceStack
Serializing Multidimensional array to JSON with ServiceStack Returning the following object excludes the property "coordinates" from the JSON. What am I doing wrong? ``` [Route("/GeozonePolygon/{ZoneT...
- Modified
- 4 Dec at 17:53
Multidimensional Arrays vs. Array of Arrays in Response DTO
Multidimensional Arrays vs. Array of Arrays in Response DTO I have a DTO that I'm using with the ServiceStack 'JsonServiceClient', and it appears a multidimensional array arrives as 'null' on my clien...
- Modified
- 5 Dec at 10:33
Iterate through 2 dimensional array
Iterate through 2 dimensional array I have a "connect four board" which I simulate with a 2d array (array[x][y] x=x coordinate, y = y coordinate). I have to use "System.out.println", so I have to iter...
- Modified
- 12 Sep at 00:52
Iterating over a 2 dimensional python list
Iterating over a 2 dimensional python list I have created a 2 dimension array like: Printing this list gives an output: where each list item i
- Modified
- 18 Jun at 17:3
How to sort a multi-dimensional XML file?
How to sort a multi-dimensional XML file? I have tried to get an XML file to sort and have had no luck. After a day and a-half, I need some help from an expert. Thanks. My XML File (shortened for the ...
- Modified
- 22 Oct at 16:16
n-dimensional Array
n-dimensional Array I want to create an n-dimensional array of doubles. At compile-time, the number of dimensions n is not known. I ended up defining the array as a dictionary, with the key being an a...
- Modified
- 16 Nov at 11:1
How to copy a row of values from a 2D array into a 1D array?
How to copy a row of values from a 2D array into a 1D array? We have the following object which is only used with a fixed first index ``` int iIndex = 5; for (int iLoop = 0; iLoop
- Modified
- 28 Apr at 11:11
Creating an array of two-dimensional arrays in C#
Creating an array of two-dimensional arrays in C# I simply want to create an array of two dimensional arrays to store coordinate points. So I want an array where each index returns a two dimensional a...
- Modified
- 7 May at 14:12
Why do C# multidimensional arrays not implement IEnumerable<T>?
Why do C# multidimensional arrays not implement IEnumerable? I have just noticed that a multidimensional array in C# does not implement `IEnumerable`, while it does implement `IEnumerable`. For single...
- Modified
- 19 May at 11:12
Selecting a multi-dimensional array in LINQ
Selecting a multi-dimensional array in LINQ I have a task where I need to translate a DataTable to a two-dimensional array. That's easy enough to do by just looping over the rows and columns (see exam...
- Modified
- 1 Apr at 18:48
Compiler Error: Invalid rank specifier: expected',' or ']' on Two Dimensional Array Initialization
Compiler Error: Invalid rank specifier: expected',' or ']' on Two Dimensional Array Initialization I have an assignment for a class that is to be done in C#. Being a complete C# newbie, I did the proj...
- Modified
- 8 Dec at 04:35
How to initialize an array of 2D-arrays?
How to initialize an array of 2D-arrays? I have an array of 2D-arrays. For example, it is like: But If I write ``` int [,][] arrays={{{0, 0, 1}, {1, 0, 0}} {{0, 0, 3}, {2, 1, 2}, {2, 2, 1}, {...
- Modified
- 13 Oct at 15:3
push() a two-dimensional array
push() a two-dimensional array I'm trying to push to a two-dimensional array without it messing up, currently My array is: And my code I'm trying is: ``` var r = 3; //start from rows 3 var c = 5; //st...
- Modified
- 17 Jan at 20:2
Loop a multidimensional array and only print two specific column values per row
Loop a multidimensional array and only print two specific column values per row How can I print the filepath and filename values from each row? ``` Array ( [0] => Array ( [fid] => 14 [li...
- Modified
- 16 Jan at 07:56
2D array values C++
2D array values C++ I wanted to declare a 2D array and assign values to it, without running a for loop. I thought I could used the following idea Which works fine to initialize the 2D array as well. B...
- Modified
- 12 Feb at 23:5
How do I parse a multidimensional JSON array using ServiceStack.Text?
How do I parse a multidimensional JSON array using ServiceStack.Text? I read [this post](https://github.com/ServiceStack/ServiceStack.Text/blob/master/tests/ServiceStack.Text.Tests/UseCases/GMapDirect...
- Modified
- 19 Dec at 11:5
Printing a 2D array in C
Printing a 2D array in C how would I print a 2d array in c say if the user types in 3 5, the output will be: Here is the code that I have written so far (newbie here): ``` #include #define MAX 10 int ...
- Modified
- 30 Apr at 02:13
Json MultiArray & ServiceStack
Json MultiArray & ServiceStack There is a line {"level": [{"level": 1, "points": 0, "name": "Some"}, {"level": 2, "points": 50, "name": "Second level "}, {" level ": 3," points ": 100," name ":" third...
- Modified
- 17 Jan at 20:57