Questions tagged as 'arreglos'

3
answers

Doubt with arrays in C ++

I'm working with C ++ and a teacher told us in class that we can not tell an array to measure a variable int array[i]; But for example can I create a constant and tell it to measure a variable to put the constant in the array? #define con...
asked by 31.10.2017 / 19:11
1
answer

Help with this problem in C

I leave here the code of a vector that I have made but I have no idea why it does not do what it should. I have put a variable called cantidad , and a vector[cantidad] so that the user can manage the values of the array but only...
asked by 24.07.2017 / 17:55
3
answers

How to remove specific element from an array of objects? Javascript [duplicated]

Good headers, I have a problem, I hope you can guide me, in what way could you eliminate a specific element of an arrangement of objects like the following? array = [ {nom: "NOMBRE 1", tipo: "TIPO A"}, {nom: "NOMBRE 2", tipo: "TIPO B"}, {nom...
asked by 19.12.2017 / 13:33
1
answer

list dictionary elements and a list in a line

Hi, I'm doing a test with lists and dictionaries, I got to a point where I had something like that. datos = {'key1':'a','key2':'b','key3':'c'} dic = ["alfa","beta","gama"] My intention is to print a,alfa b,beta c,gama I tried it with a...
asked by 30.06.2017 / 08:20
2
answers

Java. Improve iteration speed

   Example       For a = [2, 3, 3, 1, 5, 2] , the output should be    firstDuplicate(a) = 3 .       There are 2 duplicates: numbers 2 and 3 . The second occurrence of 3   has a lower rate than the second occurre...
asked by 27.11.2017 / 03:05
1
answer

how to go through the next arrangement? in php

Array ( [0] => Array ( [0] => Array ( [estatus] => ok [mensaje] => Mensaje enviado [referencia] => 2017081504081721546 [numcelular] =>...
asked by 15.08.2017 / 23:07
1
answer

Variable arrangement in C

I have made a code in which I indicate the amount of values that my arrangement will have, it introduces them well but then it does not visualize anything to me. I do not know where the fault is, I think I'm giving back something wrong. Code:...
asked by 28.08.2017 / 20:30
1
answer

Capture array values to display in a panelGrid (PrimeFaces)

I do a project using Serverfaces and Primefaces, and I am faced with this situation. I am printing the searches of my page (of hotels) in a dataGrid. In turn, if I select any hotel, it prints me some information I want in a dialog, which contain...
asked by 27.07.2017 / 23:10
2
answers

Value placement NOT constant in fixes

Good evening, I try to create a C ++ program that combines arrays in for and switch; however, I mark error in the declaration of the variable numbers [p], I know that it is because the number between the brackets must be a constant. My question...
asked by 14.11.2017 / 04:15
2
answers

Change several Select through only one with jquery

well as the title says I need to change several select when I select one that I have as the head of the others, I'll put my example in code: //Este es el select que tiene que cambia a los otros al yo seleccionar alguna de sus opciones &...
asked by 06.01.2017 / 16:24