Questions tagged as 'array'

1
answer

validate if there are matches in arrangements

I have an arrangement called $ profile array(25) { ["idVacante"]=> string(1) "1" ["fechaRegistro"]=> string(19) "2018-03-06 13:09:48" ["estado"]=> string(9) "Búsqueda" ["idPerfil"]=> string(1) "3" ["idPresupuesto"]=> string(...
asked by 17.04.2018 / 18:04
1
answer

How to pass XML file to array in Laravel

I'm doing a laravel application with which you can upload an xml file to the server to insert your data in the database. The problem with this is that I have uploaded the file but I can not convert it to an array to manage its data from larav...
asked by 29.03.2018 / 18:19
1
answer

convert .txt file to two-dimensional array with python

I have a file .txt with a lot of information, I want to read it with python but at the same time I read it I need to fill a two-dimensional array taking the word or the data separated by the comma as a position and not each character as a...
asked by 27.03.2018 / 21:29
2
answers

Store values in Array from fetch

let arrayDatos = []; arrayDatos = fetch('url') .then(response => response.json()) .then(posts => return posts) I'm trying to fill an array with data that returns the fetch function, but asynchronous Javascript I can not fill it. U...
asked by 09.04.2018 / 21:52
2
answers

Sort matrix ascending and descending

I have a question about sorting an array in ascending and descending order, I have seen the bubble method and I also found something about the 'sort' function but I do not know how to apply it, what should I know about it? I'm taking this now no...
asked by 19.03.2018 / 01:43
1
answer

Problem with arrays in visual studio (program problems)

When I want to set the limit of my vector with a variable, the program does not let me. This did not happen to me with code blocks. The code: #include <iostream> using namespace std; int main() { int save,num,c=0,digito,mayor=0;...
asked by 17.03.2018 / 03:45
2
answers

Compare elements of an array in javascript

I would like to know how to compare the rows of a matrix. This is in order to verify if the rows all the elements of the row are multiples of themselves. It is clear to me that one number is multiple of another when the result of its module is 0...
asked by 04.03.2018 / 03:17
1
answer

Tour Arrangement

Hello very good afternoon I would appreciate it if you can help me, I have the following arrangement: array(3) { [0]=> array(20) { ["uuiddet"]=> string(0) "" ["uuid"]=> string(36) "63ea13a8-1c32-4456-9604-4bfa9b953...
asked by 05.04.2018 / 23:43
1
answer

Change the array of strings to an int

What I want in this program is that instead of making a comparison with the equals use (=) with an array of booleans. public static void main(String[] args) { Scanner lector = new Scanner(System.in); String[] equipos = new String[] {"...
asked by 01.03.2018 / 11:11
1
answer

How to print an array in a JtextField in Java Swing?

I want to print an array that generates it in the following form public String buscar(){ numero = (int) (Math.random() * 3) + 1; palabra = libreria[numero]; return palabra; } public void cambiar(){ for(int i = 0 ; i < palab...
asked by 26.02.2018 / 21:40