An array is an ordered data structure consisting of a collection of elements (values or variables), each identified by one (single dimensional array, or vector) or multiple indexes.

learn more… | top users | synonyms (2)

0
votes
1answer
12 views

How to Expand Hash array to xml using xmlout()

So I have a perl class that is storing node and arc information for a tree data structure and when I try to output this as xml using XMLout() I do not get the full expansion of the array. So ...
1
vote
1answer
23 views

Creating a monopoly command game in Objective C

I'm a software application development student going into my final year where we have been given free reign of choice of languages. Being an Apple Fanboy - my choice naturally was Objective-C. As a ...
0
votes
1answer
10 views

Trying to pass array of strings to destination view controller

In my app I have parsed images in Collectionview cells that segue when pressed to another screen with the larger image. This works fine. But, when I try to add a label that contains an array of ...
3
votes
4answers
60 views

Making null values from array into averages of existing values

Ok, i have a random array with some values: Integer[] array = {null,null,5,111,21,null,22,null,null,null,98,25,47,null,1,23,null} I want to replace all the null values with averages of the nearest ...
1
vote
1answer
496 views

Passing Arrays and Structures to C Function

I wonder why we can pass structure to C function by value, but we can never do the same with array (which is passed by address). When I was learning C, they told me that arrays consume much stack, so ...
2
votes
4answers
242 views

How to randomly generate numbers without repetition in javascript?

I want to generate each number between 0 to 4 randomly using javascript and each number can appear only once. So I wrote the code: for(var l=0; l<5; l++) { var randomNumber = ...
0
votes
1answer
11 views

Get the number of data entries in another file?

I need to know if you can easily get the number of data entries in another file and save that number in the original file. Need a program that will process the other file no matter how many entries ...
0
votes
1answer
27 views

Access String Array outside of two loops

I have an array of Strings created inside of a while loop nested inside a for loop. This has to do with creating an array from a column of strings in Derby but I will leave out some stuff for ...
-2
votes
0answers
16 views

How to convert multi line string to array of hashes in Perl

I am trying to convert basically a table stored in a string to an array of hashes. Here is my data: model |part_number |type |serial_number | ...
0
votes
0answers
12 views

What is the best way to convert a SymPy matrix to a numpy array/matrix

I am not sure if the approach I've been using in sympy to convert a MutableDenseMatrix to a numpy.array or numpy.matrix is a good current practice. I have a symbolic matrix like: g = sympy.Matrix( ...
0
votes
5answers
66 views

Convert array to multidimensional array in C#

I'm quite new with C#. I have a function which gives me the results in an array like this [0] => value [1] => value [2] => value [3] => value [4] => value But in my case, [0] [1] ...
0
votes
0answers
3 views

BT Stream Correct buffer type

I have a Bluetooth Module which is sending a 16 hex value array to a delegate in my Objective C app. What type of array should I use to handle these incoming stream values. Does it even matter? ...
0
votes
4answers
59 views

Does Java's Arrays.asList() violate OOP?

In Java, I wanted to convert an array to a list. Given that Java is an OOP language I expected to do something like: int[] myArray = { 1, 2, 3 }; // non-working code List myList = ...
1
vote
5answers
2k views

Simple bubble sort c#

int[] arr = {800,11,50,771,649,770,240, 9}; int temp = 0; for (int write = 0; write < arr.Length; write++) { for (int sort = 0; sort < arr.Length - ...
0
votes
1answer
22 views

How do you write several arrays into an excel file?

If I had several arrays I want to write into an excel file using Python, what would be the best way to go about it? I've tried several ways and cant figure it out.... this is an example of one way I ...

1 2 3 4 5 3625
15 30 50 per page