Questions tagged as 'array'

2
answers

Parse error in Haskell

I am new to Haskell and also in programming. I'm trying to learn Haskell with exercises already done. Just now I get an error that says the following.    error: parse error on input "n", failed modules load: none From the following cod...
asked by 22.10.2016 / 01:10
1
answer

Comparison of mysql records with php array

I need to compare the id contained within a php array, with those of a field in a mysql table. The idea is NOT to show the id (of the php array) in the mysql query response. $consulta="SELECT * FROM permisos_pedidos WHERE id_cliente = '$id_us'...
asked by 02.06.2018 / 04:23
2
answers

Display two array instances

Good morning, I am involved in designing two boards for a game (Sink the Fleet), in small steps, I have a class MyDesk where I have created two instances of the board, however, when calling both from a main class ( MyDesk barco = new M...
asked by 22.04.2016 / 12:21
3
answers

How to enter arrays by constructor? Arrays java poo

I have to do a program to enter arrays in the main and then show the number plus its position, I wanted to enter arrays by the constructor and it does not leave me. Is there another way to do it? public class IngresoDeEnteros { private int nu...
asked by 05.12.2018 / 01:42
1
answer

concatenate java arrays [closed]

I have been asked for a two arrays, I have found this tool (int[])ArrayUtils.addAll(a, b) that I can solve in a single line. The problem is that the compiler gives me error    C: \ Users \ BEEO \ Desktop \ java \ practice3> javac Vecto...
asked by 29.06.2018 / 03:05
1
answer

Alphabetic ordering c #

I have a program in C #, that entering the names of three countries with their respective temperatures, calculates the average annual temperature of each one. Then he prints them in alphabetical order. When finished, print the country with the h...
asked by 25.10.2018 / 06:05
3
answers

Problem when printing PHP array data

I have a problem in the following code, I am trying to print the data 'notes' of the array with 'foreach' but when printing with 'echo' it prints the word 'Array' and does not print the data I want. $persona1 = [ 'nombre' => 'nombre1',...
asked by 30.11.2018 / 12:38
2
answers

Combine Arrangements with Enum [duplicate]

I have an enumeration with the months, something like that enum Meses { Enero, Febrero, [...], Diciembre }; I have an arrangement, where I store entire data. Now, what I need to do is something like for (int i = 0; i < n; i++) //...
asked by 21.10.2018 / 19:55
3
answers

Union of two array in Javascript

I need to join two arrays, from the server I get the next json. an array that says "data" that has 2 objects and another that is called "Doc" which is made up of 4 objects.    I want to create a matrix that contains 8 elements equal to the fo...
asked by 31.03.2018 / 07:16
2
answers

JQuery / Javascript - Sort Multidimensional Array ()

I have the following Array (): { "1 ": { "id":"12", "usuarioA":"1", "usuarioB":"2", "mensaje":"Hola mi amor", "date":"2017-01-19 03:02:12", "TokenID":"1",...
asked by 19.01.2017 / 09:22