Questions tagged as 'array'

2
answers

Count times a value appears in an array

Given an array of n integers, count the number of times a value appears determined. Solve the problem with a recursive algorithm int contar (int [] array, int valor, int posInici) array : array with values. valor : v...
asked by 29.03.2017 / 18:01
2
answers

I need a closed condition in the last element of the array

It is a sum of derivatives, and the sign " + " is added every time it is solved. But in the last element you do not have to add the sign " + ". Please, help with that.     
asked by 06.04.2017 / 02:53
2
answers

Upload several txt files to FTP with Java

Greetings, and thanks in advance. The question is that I have been doing a small program in Java to upload several txt files to an FTP, I have managed to upload it with one specifying its path and name.Extension, but I want to do everything for...
asked by 26.05.2017 / 14:17
1
answer

Remove elements from a two-dimensional array in C #

I am doing a program that simulates a database of a library, which should allow operations such as entering new books, unsubscribing, consulting and others, this is the code I have: using System; using System.Collections.Generic; using System....
asked by 11.03.2017 / 18:45
1
answer

Separate elements of a vector according to its type

I need to separate the elements of a array according to whether it is number , text and alphanumeric but the alphanumerics are not printed: ( <?php $d[0] = 13; $d[1] = 133; $d[2] = 45; $d[3] = "Hice 89 lagartijas"; $d[4] = 778; $...
asked by 25.02.2017 / 05:24
1
answer

Google Chart from JQuery Array

My goal is to obtain a graph from an array obtained by JQuery I import the Google Chart <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> The block where I get that array is the following...
asked by 27.12.2016 / 16:33
1
answer

Problem with PHP Array

I do not have much experience in PHP. I had a foreach taking out the information from this Array: foreach($_SESSION["cart_item"] as $k => $v) Now I have added this to the Array: foreach($_SESSION[$clie]["cart_item"] as $k => $v)...
asked by 23.01.2017 / 18:34
1
answer

Validate form with PHP

I already have my form and my validations done, what I really want is that when you enter information in the (input) text boxes of the form and when you leave a text box ( input) empty or incorrectly validated, do not delete the fields that...
asked by 27.11.2016 / 03:04
2
answers

Browse associative array and show through DOM

I need to go through the following array: var estrenos = []; //array con los 3 estrenos, cada ID del article se corresponde con el INDICE del array estrenos['ant'] = { Titulo : 'El Hombre hormiga', Foto : 'ant_man_large.jpg', T...
asked by 14.11.2016 / 22:20
1
answer

JSONArray eliminate duplication-

Given a JSONArray with several JSONObects inside with the following structure: [ {"Id_temp":"1","temperatura":"20","Insertado_temp":"2016-08-16 12:30:29"}, {"Id_press":"1","presion":"34","Insertado_press":"2016-08-16 16:18:36"...
asked by 08.09.2016 / 21:07