Questions tagged as 'array'

1
answer

Error in calculating values of a vector

I'm stopped at this part of my job in college case 2, the output gets all mixed up, for example:    Profit will be -1,#$%#!@ #define vetor 40 struct Produto{ char codigo[10]; char descricao[100]; float precoCompra;...
asked by 28.08.2014 / 21:29
0
answers

In PHP, does the inner pointer of an array make up its value?

Consider the following array : $a = [1, 2, 3, 4, 5]; However, I noticed that the pointer position of the array is also copied. If before we set $b = $a to be a copy of $b we change the position of the pointer: $a...
asked by 06.12.2018 / 15:14
2
answers

Save data from a Row to an array

I am designing a new feature for a Winforms project in C # . Soon I developed the following method that returns whether in the GridControl (gvDados) component there is a selected row or not. public bool RetornaSelecionado(bool Seleci...
asked by 25.09.2018 / 19:01
1
answer

JavaScript - Continuity of an array using arithmetic operations to find the index

In JavaScript, I, using the common for loop iteration of array with variable i , I'm trying to create an array with sub-arrangements having data from other arrangements from an order relative to the position of i . This code example desc...
asked by 08.12.2017 / 04:15
1
answer

Transfer the keys and values from a JSON to PHP variables

How to transfer data from a JSON: {"resultado":true,"cadastros":[{"id":"12345","nome":"Augusto","idade":"30"},{"id":"23411","nome":"Carlos","idade":"93"},{"id":"13451","nome":"Bruno","idade":"23"}],"mensagem":"Success"} For variable...
asked by 02.04.2014 / 18:19
1
answer

WP_query, How to sort meta_query in the order of an array?

I'm developing a system where I have a Deck presentation. I have a field that takes the post by the type copas suit being within the meta_value array specification, and I would like it to be sorted exactly as it is in the array:...
asked by 31.08.2018 / 16:49
0
answers

How do I separate my arrays by index?

The text boxes corresponding to the number entered by the user are generated, each text box is accompanied by several checkboxes to choose the type of text. But it goes like this: Array ( [0] => 0 ) object(ElementosDTO)#7 (2) { ["t...
asked by 05.09.2017 / 19:34
1
answer

Syntax ': value' in the array

I've seen this syntax in laravel, in the 'resources / lang' area, where authentication messages are pre-configured. And I came across the following code: <?php return [ 'throttle' => 'Too many login attempts. Please try again in :se...
asked by 20.03.2018 / 18:54
0
answers

Sending Vectors from Computer to Arduino

Hello, I have a project that uses Arduino to perform some operations for me. However, these operations use vectors. I need some way to send a computer vector (other than Serial) to the Arduino, and then send it back to the computer....
asked by 11.11.2015 / 22:35
1
answer

How to sum array data in json specified by date

array(10) { [0]=> array(4) { ["data"]=> string(10) "01/11/2015" ["valor"]=> int(50) ["intensidade"]=> float(37.5) ["carga"]=> int(35) } [1]=> array(4) { ["data"]=> string(10)...
asked by 31.10.2015 / 22:05