Questions tagged as 'array'

2
answers

How to check and print values that are repeated in a vector

I have the following problem to check the vectors that are repeated in a Vector: Given a sequence of n real numbers, determine the numbers that make up the sequence and the number of times each occur in it. Example: n = 8 Sequence:...
asked by 18.08.2017 / 17:25
1
answer

How do I go through an array and say how many objects of each one exist in it?

The program is: you type a letter / word in the Input and click on the button (add) it appears in the div , I wanted to know how do I "scan" these words / letters and say how many of each exist . Example: I added 10 letters A and...
asked by 09.08.2017 / 18:44
1
answer

Paste value in Array chunk

I have 12 teams registered in a table and I want to divide them into 3 groups. So I get these teams in array form and I use array_chunk to split them, which will form the 3 groups of 4 teams I want. But I am not able to access NAME_...
asked by 25.08.2017 / 17:36
0
answers

Access Array Data

I have an Array that has the following items: [[362, SCAB171570FEC]] To display this I use the following expression: return $data.listaItensPedido.value; But I need to, for example, access only 362 , I tried this expression: re...
asked by 17.08.2017 / 15:38
1
answer

Filling arrays using a recursive function?

I have a recursive function that divides a certain number into parts, example: Number 259, when going through the function it will look like this: 200 and 59, I need to store these numbers in a array . Example: In the first loop of...
asked by 07.08.2017 / 21:07
1
answer

How to pass information from a file to a dynamic vector of C structures?

Good afternoon! (EDITED) I'm doing a work in C language, where I have to display the information stored in a text file in the console, but it is mandatory to pass all information to% dynamic% of structures. I think I've already done somet...
asked by 07.08.2017 / 18:08
1
answer

How do I show some elements of an array following this criterion?

I have to make a php form that in the end shows the price of each product bought, showing only the prices of the products that were marked in the other column of the table in the checkbox: FORM: **<!DOCTYPE html> <html> <head...
asked by 06.08.2017 / 01:46
1
answer

how to make a filter on an array in Swift similar to like?

let cast = ["Vivien", "Marlon", "Kim", "Karl"] would like to return like ('% ar%') "expected result [" Marlon "," Karl "]"     
asked by 25.07.2017 / 04:52
0
answers

Save a byte array in the sql from a Datatablereader

In one of the system tasks, I need to query a Sql Server database, which returns me a Datatable , in this Datatable , one of the data is of type Byte[] So, to read Datatable I use a DataTableReader , which give...
asked by 19.07.2017 / 22:26
0
answers

Shopping cart error in array when retrieving last id sqlsrv_fetch_array 11- is not a valid ss_sqlsrv_stmt resource in

I am putting together a shopping cart but I am facing the following error which I mentioned in the title. The method receives 2 parameter $ listProducts is an array as all purchase information and the $ Total parameter receives $ _SESSION of the...
asked by 23.07.2017 / 16:50