Questions tagged as 'array'

1
answer

How do I get values in an array of objects in javascript? [closed]

How do I get values from an array of objects and store them in a variable? In this case, I wanted to get the values of id . Ex: id = 1234,4586 These id s are dynamic data. Ex: an e-commerce site - a user adds a product to the...
asked by 17.09.2014 / 17:24
2
answers

Optional shopping cart [closed]

Positive added / Negative removed ([1] => 3 [6] => -2 ) Next the customer can change all the settings of the snack contains a standard amount (recipe) it can remove 2x and can add lettuce 1x 2x 3x In case he added 3x and w...
asked by 17.09.2014 / 12:13
1
answer

Problem displaying array

I have a logic problem to display the data in an array. It is the following: I have a function, which returns me the result of registrations per UF per day. In this step 2 parameters, an array with the dates and an array with the states....
asked by 28.09.2015 / 15:47
1
answer

Create a new array of array row 2

I have an array of 30 rows and I want to get only index 1, this is $arr[1] , which I can already do. On the second line of my $arr[1] , I have student information. How do I get only that row and transform the space-separated values i...
asked by 09.12.2018 / 20:34
2
answers

Problem with vector ordering in C

I'm trying to make this problem, but the result always goes awry.    "Make a program that creates a 10-position vector filled by the user. Scan the vector and whenever the value of the i-position of the vector is less than the value of the i...
asked by 29.11.2018 / 23:24
2
answers

Javascript: How to get an array of objects inside a child from an array of objects

I have the following sample object: const empresa = { nome: 'Tal tal', endereco: 'taltaltal', groupos: [ { nome: 'taltaltal', codenome: 'tal', as: [ { nome: 'grupo a',...
asked by 05.09.2018 / 14:14
1
answer

How to handle the null values of a vector in the conversion from String to Double?

I need to display the top 10 contract rescission clauses, which are in a vector, extracted from a CSV file. Here, when I refer to contract rescission clauses, I mean monetary values (money), more precisely for fine of termination of contract....
asked by 09.09.2018 / 06:12
1
answer

Someone experienced that understands well the manipulation of Strings, that can help in this error

Good morning, I'm presenting a problem that I have no idea why, I've tried to ask other people, none have discovered the real reason for the error and how to fix it. Well my teacher, asked to implement a system with which opens a txt file that c...
asked by 13.11.2018 / 12:32
1
answer

How to check if vector fields are null?

I am building a program, which should check initially if the array of type (Class) is null. My class has the get and set method, as well as the with and without default constructors. However, when the program initializes, the values of each cell...
asked by 14.06.2018 / 23:16
1
answer

Javascript Array

People would like to know how to search for an image instead of color in this javascript array below Instead: <script> array var arrDados = [{title: "Dados 1", value: 1, **color**: "#fe4400"}] </script> I wanted to change to s...
asked by 02.06.2018 / 19:52