Questions tagged as 'array'

2
answers

Convert Array String to Array float

People have a challenge I have to convert arrayString to arrayFloat it's not how you usually do it array *date = [obj valueForKey:@"oficialTime"];// por ejemplo 10:10:02 float f = [date floatValue]; The problem here is that array is in Ns...
asked by 20.01.2017 / 13:12
2
answers

How do I apply a function to this array

I have this array that returns the id of the images but with a wordpress function I need to apply them to each of the id that returns the array and this function will be responsible for converting them into url, each one ....
asked by 24.11.2016 / 16:49
2
answers

Assign to Array result of ArrayList () Java

The method toArray of class ArrayList returns an array of objects. How can it be done to return an array of strings (StringList [])? Should it be done like this? ArrayList<String> nombreArrayList = new ArrayList<String&g...
asked by 01.11.2016 / 20:29
2
answers

Convert from grid to array

I have a dataGridView1 with 3 columns name, amount and price I need to take them to the following format 000000010000001000Papas where:    (0000000100) (00001000) (Popes) The first is the price, the second the quantity and...
asked by 11.10.2016 / 06:39
2
answers

c # cartesian product of arrays

I need to find a way to get all the combinations that can be obtained by taking an element from the first array and another from the second. I give an example so that it is understood ARRAY X = [A, B] ARRAY Y = [1,2] results that you are look...
asked by 23.03.2017 / 20:47
2
answers

How can I download all the files in the array?

I have the following arrangement: foreach (string Id in Arguments.SelectedValues) { string temp = @"http://localhost:17277/blob.ashx?Pdf=o|" + Id; Result.NavigateUrl = @"http://localhost:17277/blob.ashx?Pdf=o|" + Id; } in which I...
asked by 12.08.2016 / 20:56
1
answer

how I transform this algorithm from pascal to c ++

Hello everyone I am a first semester student of lic. in computer science and in my university they sent us to learn the languages in a self-taught way, until now we have seen pascal but they ordered us to learn c / c ++, we are currently working...
asked by 20.07.2016 / 02:36
1
answer

Assign values to a multidimensional array using a for loop

Good, I'm making a game board (a simple sink the fleet), and to define the boxes I'm using a multidimensional array (x, y). The idea is to initially assign values to these boxes depending on the content (toilet = 0 boat = 1), it seems too gross...
asked by 18.04.2016 / 16:32
3
answers

Rotate php array position

Basically I have to move a position of the array (the position 0 to 1, the 1 to the 2, so on until the last position that moves to the first) Example: Array = 1/5/7/9/14/12 Change of position = 12/1/5/7/9/14 The variable $ num, I use to know the...
asked by 13.12.2018 / 17:07
2
answers

Declare the second dimension of a stepped array

I have to do a stepped array, but I do not know how to do it so that at the time of asking the columns of the array are declared within the loop, the program should do this as many times as players put it. Exit of the program Enter the num...
asked by 16.12.2018 / 13:02