Questions tagged as 'array'

2
answers

Move elements clicked from one array to another

What I want to do is move an element from one array to another, but only those that the user selects and without JQuery, I am in Angular 4, I leave my code. Bold text <div class="create-cont-top-left"> <h5 class="clrGr...
asked by 26.09.2018 / 17:50
2
answers

(Fixed) fix in java when entering 2 words in the same array address

In class we are seeing arrangements in java and they ask me for a program that: Ask how many names you want to enter. Print them. something like this: [0] = "Alejandro Sanchez"; [1] = "Fernando Ortega"; The only thing I could d...
asked by 05.10.2018 / 05:51
1
answer

Index outside the limits of the matrix - C #

I have a problem with my code, I'm trying to make comparison of numbers within an array, only that it gives me an index error outside the limits of the array. I hope you can help me, I would thank you very much, I leave my code if ((array[0])...
asked by 06.11.2018 / 04:50
4
answers

COMBINE 3 ARRAYS IN PHP

Hi, I'm trying to combine 3 arrays into one, but it can only be done with two arrays. Array ( [0] => ITEM1 [1] => ITEM2 [2] => ) Array ( [0] => 2 [1] => 4 [2] => ) Array ( [0] => 50 [1] => 400 [2] => ) How...
asked by 18.08.2018 / 12:48
1
answer

HTML PHP Multidimensional Array

I need to build a multidimensional array with an html table <!DOCTYPE html> <html> <body> <?php $ciutats = array ( array('Tòquio','Japó','Àsia'), array('Mèxic', 'DF', 'Amèrica'), array('Nova Yo...
asked by 21.10.2018 / 14:08
1
answer

How to show only some javascript object data

I have the following code: // ARREGLO producto = [ { n: 'Jabon en Pasta', az: 1, ro: 0, am: 0, bla: 0, c: ' ', v: 0, t: 'sol', grupo: 'No Incluidas' }, { n: 'Ambientador', az: 2, ro: 1, am: 0, bla: 0, c: ' ', v: 0, t: 'liq', grupo:...
asked by 06.08.2018 / 00:47
1
answer

Dictionary, access the password. c # .net

I have a variable that stores a dictionary returned by a method, that is, the variable calls a method and it returns a dictionary. var listofchamps = SAPI.GetChampions(RiotSharp.Misc.Region.euw, data).Champions.Values; I attach the followin...
asked by 22.07.2018 / 14:39
1
answer

Problem with class template vector c ++ [duplicated]

Good evening I have a mess with a C ++ code use the Vector class template to enter the number of data dao by the user, what happens is that you use one function to enter the data and another to show data, the error or the exception I get when...
asked by 27.07.2018 / 02:52
1
answer

Assign values to a 2d vector in c ++ [closed]

I'm trying to assign values to a 2d vector in c ++ This is how it is defined, where rows and columns are integers defined. vector < vector <int>> vec(filas , vector <int> (columnas)); what I want to assign to each space of...
asked by 07.07.2018 / 10:02
2
answers

Find the letter that only repeats once in a string of characters and show its position?

The objective is to enter the number of characters that the chain will have, and find the letter that only repeats once acum_menor , then show its position. I did it by comparing the string with another one that contains the letters of the...
asked by 09.07.2018 / 14:51