Questions tagged as 'array'

3
answers

I iterate 2 array in a v-for with fields that have a relation

I want to show two arrays in a table veran I have two arrays in the first one I have the products and the second one I have the states of the products and it has a field product_id to which it refers. <table class="...
asked by 30.12.2018 / 03:55
3
answers

how to find repeated in a javascript array [duplicated]

Hello Friends given an array: var x = [1,9,2,1,5,6,2,9]; How could you identify the elements that are repeated in the array x and put those repeated in another array? I know I have to go through it with for (i=0; i<x.length;i++)...
asked by 29.05.2018 / 04:32
3
answers

Count repetitions of integers C ++, Array

Good morning, the exercise says the following "Design an algorithm that accepts a natural number n and counts the number of times each digit is repeated within it" I know I have not posted my code, but I do not know where to start, that is...
asked by 30.06.2017 / 22:46
2
answers

How to delete a keyword from a text in C?

I have an exercise that says: Encode a program that reads through a keyboard a keyword of up to 15 characters and a text of up to n lines (n being a constant value). The program should eliminate from the text those lines that contain the ke...
asked by 03.01.2017 / 12:58
5
answers

How do I display the active or inactive checkbox results in the console or store them in an array in javascript?

I'm working on a code with checkbox and I want the results of which boxes are active or inactive to be displayed in the browser console or stored in an array by pressing the save button to later work with them . The code I have so far is...
asked by 08.09.2017 / 08:45
1
answer

Arrangement of procedures c

I need to create an arrangement of procedures in c , I did it in this way but I get an error: typedef void TFunc; int main{ TFunc funciones[25] = {definicion de mis funciones}; }     
asked by 22.03.2018 / 18:27
2
answers

Fix (not matrix) with double pointer in C ++

I do not understand how to handle an array with a double pointer (it's not a matrix, it's a linear array). I did some tests with the following code: int *num = new int; int** algo = &num;//acá se pasa por referencia (no por copia), el p...
asked by 23.03.2018 / 03:26
2
answers

How do I get an array of numbers and letters to show separately the result of the sum of the numbers and the whole word?

The array would be the following: const array_A = ['H',1,'o',2,'l',3,'a'] and what I want to achieve is to see this '6 Hello'.     
asked by 16.10.2018 / 00:52
4
answers

Error java.lang.ArrayIndexOutOfBoundsException

It's something simple that I'm doing, I just try to ask for a size of a vector and then fill it in java. I wanted to do it as practice however at the time of running the program I showed error. I would like to know if someone could help me. This...
asked by 10.03.2018 / 03:58
2
answers

hashCode () returns the value of the integer, not its hashCode

I have a matrix like this, from which I want to obtain the codes hash of all its elements: Integer[][] { { 1, 2, 3 }, { 1, 2, 3 }, { 1, 2, 3 }, { 1, 2, 2 } }; I go through it with a loop and I do .hashCode() of each element...
asked by 10.03.2018 / 22:47