Questions tagged as 'array'

1
answer

Arrange array

Good how can I organize this array without using a loop Original Array ["Entrada" => 4, "Prato principal" => 1] Intended Array [["Entrada",4],["Prato principal",1]] Ok I understood what you guys mean ... I had looped even more...
asked by 17.06.2018 / 09:09
0
answers

Write data from a Multidimensional PivotTable Array

Personally, I'm having a hard time on my Back-end. In a form I am sending data with dynamic data using for example name="qtd[]" . As far as beauty, in my PHP, I'm getting for example 2 lines of information, each column contains qtd, ite...
asked by 18.06.2018 / 22:06
0
answers

Insert at the beginning of a circular row

I'm working on a circular queue program where I want to implement a "stick queue" function where the user enters a number and this number should be entered in the queue spaces prior to f.com. But the logic I implemented did not seem to work very...
asked by 14.06.2018 / 23:21
1
answer

How to compare two vectors and exclude equal values of the vector with the largest number of characters? In "C"

Generate and display sets A - B and B - A A and B are both vectors with user-defined sizes A - random values B - user defined For example: Vector A = (10), (5), (7), (8), (12) vector B = (10), (8) A-B New Vector A = (5), (...
asked by 14.06.2018 / 15:01
0
answers

Read N numbers in a vector, and calculate the repetitions

Hello, I need help with an issue, the statement asks Read a sequence of n real numbers in a vector, calculate the quantity and percentage of times that each of the numbers repeats. the number 'n' of numbers should also be read from the keyboa...
asked by 18.06.2018 / 18:38
1
answer

Add multidimensional PHP array

Good morning, I have the following array: Array ( [0] => Array( [data] => 2018-06-08 [grupo] => 1 [maq] => 1 [segundos] => 10089 ) [1] => Ar...
asked by 13.06.2018 / 15:56
1
answer

Group values in a PHP Mysql query

I am pulling BD values into a table with the query results, this search is by date, it works perfectly if I fetch for a single day, however I would like when to fetch for two or more days (ex 07/06 / 2018 to 08/06/2018), it would bring the group...
asked by 08.06.2018 / 15:44
0
answers

I can not do Array (in JSON) in Typescript

Below is the Array I need [ { "id":1, "nome":"LESPAUL", "validade":1525568400000, "dataGerada":1525914000000, "status":true, "itens":[ { "cliente":{ "id":1,...
asked by 12.06.2018 / 01:33
2
answers

Checking if value exists in an array via search field

In pure javascript I can use indexOf() , something like this: var chaves = ['wmv','3gp','mp4','mp3','avi']; if(chaves.indexOf("avi") != -1) { alert("Ok!"); } But when it comes to a search field I'm trying this way: <html...
asked by 26.12.2016 / 20:29
0
answers

Language C - Create Array of Dynamic Strings and Iterate by values [duplicate]

Good afternoon, guys. Despite having researched extensively on the Internet, I could not understand the concept of creating Dynamic Strings Arrays. I need to store some strings (I do not know the amount beforehand) and iterate through the "...
asked by 11.06.2018 / 23:06