Questions tagged as 'array'

1
answer

Doubt with a test of a Java program

I have the following question about my Fundamentals of Programming class, the professor gives us the following code: import java.util.Arrays; public class blablabla { public static void main(String[] args) { int[] v1 = new int[] {9,6,2,...
asked by 18.05.2018 / 14:41
1
answer

PHP-Reorder Array

I have developed an algorithm in php to reorder an array that I have, the code is as follows: <?php $idescuelas=[4,5,8]; $newalumnos=[]; $sql="SELECT * FROM pruebas_alumno inner JOIN alumnos on pruebas_alumno.id_alumnos=alumno...
asked by 09.05.2018 / 16:45
1
answer

Show query in table

I have my functional sql query. If I print it with print_r it gives me all the information I need, which are only 5 records with 3 data: Array ( [0] => stdClass Object ( [fecha_del_deposito] => 2018-05-08 [importe] => 60 [tipo_...
asked by 10.05.2018 / 23:28
1
answer

extract the value of an element in an array with javascript

I have the following array Array ( [inv_id] => 193 [inv_prefix] => PREF [inv_number] => 192 [inv_quotationNumber] => 0 [inv_date] => 2018-04-09 [inv_dateDue] => 2018-04-09 [inv_empId] => 2 [...
asked by 27.04.2018 / 22:16
3
answers

Call arrangements within a cycle

What I would like to be able to send to call some arrangements and go through each of them in Javascript in a dynamic way. For example: var idarray=[1,5,8] var arreglo1=[23,34,56,45,534] var arreglo5=[34,34,12,65] var arreglo8=[34.23....
asked by 16.05.2018 / 02:48
2
answers

Is it possible to convert an Object result into an Arrangement in C #?

I have the following method: public List<AnfitrionDto> Seleccionar() { List<AnfitrionDto> ret = new List<AnfitrionDto>(); VisitantesEntities db = new VisitantesEntities();...
asked by 03.05.2018 / 22:59
1
answer

Array of C pointers [duplicated]

a question I have a doubt if someone can help me. What would be the prototype of a function that receives as parameter an array of pointers? Thank you very much     
asked by 21.04.2018 / 22:44
1
answer

How do I set an array as a parameter in JavaScript? [closed]

I've been trying a new function to my program, this program has the purpose of making it easier to search for elements within an array, all these elements are unique, one way to find them and deliver them is by a rank, giving two parameters in t...
asked by 25.04.2018 / 21:25
1
answer

Modify length of a vector in c ++

I want to modify the length of a vector and at the same time delete the remaining elements if the new length is smaller than the original length of the vector. I do not know if there will be reserved words of the language to do this. It is with...
asked by 18.06.2018 / 01:05
1
answer

How to compare two arrays with text strings and create a new one from repeated words in these

I have two arrays, one with a text with more words and the other with the text that I should compare, the problem is that there is a word that appears twice in each array so when I run the code it repeats itself in the new array, when it should...
asked by 17.04.2018 / 19:56