Questions tagged as 'array'

1
answer

I want to do a reading speed test in console (C #)

I'm doing a program / game in C # which is basically a 6-speed reading speed test and I want to show something similar to this in console: link The problem is that it does not show even a single word of the contents of the text file....
asked by 05.12.2018 / 02:46
1
answer

android arrayLIST of objects ksoap does not fill my listview

I am developing an app that consumes webservices, the detail is that they send me a method called menu , which returns me an xml, I am implementing the class Asynctask and in the part of Ibackgrind I make the call to my webse...
asked by 21.04.2016 / 21:53
2
answers

How to subtract values in an array (PHP)?

First I generate an array of 3 positions with random numbers, then I try to subtract the three values from the array. The problem is that if the first subtraction gives me a negative number the next value does not subtract it well. For example:...
asked by 29.11.2018 / 12:44
1
answer

Go through an array of a query in PHP

I have the following function in PHP: function ListarDependencias() { $db = new Conexion(); $sql = $db->query("SELECT Id, Nombre FROM Dependencias;") or die (mysqli_error($db)); if($db->mysqli_num_rows($sql) > 0) { $result...
asked by 09.10.2018 / 19:24
1
answer

I do not run a program with Java fixes correctly

public class AlumnosA { String [] alumnos = new String[2]; int []calificacion = new int[2]; String []letra = new String[2]; String a; int c; String estatus; String cal; public void alumno(){ Scanner tecl...
asked by 19.09.2018 / 05:22
2
answers

how can I know when is the last item in for

I have a problem in php I am trying to know when the last element is not generated the last element that would be <li class="separator">&nbsp;</li> <?php $rama_cat="40-20-01"; $partes=explode('-',$rama_cat);...
asked by 01.10.2018 / 03:55
2
answers

Search for values from one array in another and return a specific position

I have these two arrays, the first one is made up of foreign keys that come from the BD and the second one by the detail of one of those foreign keys. How can I go through the 0 position of my first array and search the second for the value of t...
asked by 18.09.2018 / 00:36
2
answers

Investment program with tabulation table and one or two dimensional arrays

It is a school exercise on the use of c ++ fixes, although I can not understand how to make the exercise show tabulation of the month and the accumulated total and the total accumulated profit at the end of the term. --------------------------...
asked by 30.08.2018 / 06:38
1
answer

Validate array within a JSON in node.js

I need to validate the fields within the "Extras" array, they are really "Number" and "Country_code", I also need to be able to obtain the values. HELP PLEASE !! "Persona": [ { "Nombre":"Maria", "Apellido":"Vargaz",...
asked by 01.09.2018 / 17:36
1
answer

JavaScript: .push is not a function

How are you? I'm practicing some JavaScript, since I'm new to it, and I'm trying to create a "space invaders" game with p5.js. I have made some progress, but, I have encountered a problem that I can not solve: var ship; var aliens = []; var m...
asked by 10.08.2018 / 01:37