Questions tagged as 'array'

0
answers

I can not assign a value to the last element of an array

struct Numero {         ishort num;         Number * next;     }; ishort array[3]; array[0] = grid1; array[1] = grid2; array[2] = grid3; array[3] = grid4; ishort i = 0; Numero *n; Numero *t; Numero *h; //lista circular while(i <= 3) {...
asked by 06.10.2015 / 00:21
2
answers

Array with inputs and a specific data!

Just right here to solve certain things. I'm breaking my head to do this loop but I have not gotten it yet. How do I put the highlight in this array (), with only 1 of those photos being marked as 1. $fotos = $this->input->post('fo...
asked by 24.08.2015 / 19:23
0
answers

Remove a certain value from multiple rows in a table?

I'm having trouble creating an algorithm to scan and exclude certain emails from groups of emails. I have a table where are registered company emails that are displayed on the intranet, with these values are created groups of emails that are...
asked by 16.10.2015 / 20:29
1
answer

Remove value from an array

My array is mounted as follows: obstacles = [[x, y], [x, y], ...] I want to remove from the array a position [x, y] But the obstacles.remove() function is shutting down the server when it is run, if I comment on it, the rest wil...
asked by 17.09.2015 / 00:09
0
answers

Change-making algorithm - Less amount of possible coins

Given the Change-Making algorithm: change(C1, C2, ...., Cr: valores de denominações de moedas, onde C1 > C2 > ... > Cr; n: inteiro positivo) for i := 1 para r di := 0 {di conta a denominação das moedas Ci usadas} while n...
asked by 15.09.2015 / 22:48
0
answers

UITextField does not take the text value of an Array Swift

I'm using core data to save the user's input into an array. Until then the code works perfectly, the problem is to pick up some element of that array and put it in the UITextField. The code has no errors, just does not work as it should. @IBOu...
asked by 14.07.2015 / 19:31
1
answer

Go through XML array in PHP

Hello. I have this path that is a array position of an XML response, and I'm getting the IDcli . I can not make a foreach that traverses this array and shows IDcli . $xml = simplexml_load_string($obj); $xml->sis-&...
asked by 27.05.2015 / 22:18
0
answers

Parameter as array (cakephp)

I'm passing this an array containing data from a form, to a function, but in php it accuses this error. Can not use string offset as an array. public function add($galeria_id) { if ($this->request->is('post')) { foreach ($t...
asked by 20.04.2015 / 14:18
1
answer

Using ResultSet, converting String to Array

I'm trying to convert some data that comes from DB into an Array, using ResultSet to select DB data. In the code below it does not give any error though. If I try to use one:    System.out.println (x [0]); It does not show the first data,...
asked by 23.04.2015 / 21:51
0
answers

Start reading from the beginning of the string list

How do I add a string to a list (it can be in list A or B), my code comes back and starts reading the beginning of the string list , ie the first string? I have a list of 20 strings. But it is giving an error because my code adds str...
asked by 06.05.2015 / 00:42