Questions tagged as 'array'

2
answers

Check that each element of an array is equal to the other. Javascript

I'm with an existential doubt. I have a function, which must return true in case each element of an array is equal to the other. I have an arrangement with five elements that constantly change, and every time a new element is set, the func...
asked by 03.05.2018 / 05:06
0
answers

how can I add the data of a variable to an array?

My may be a bit easy, but being new on this topic is a bit complicated. I have this code <pre> <em> $(document).ready(function() { var date = $.getJSON("prueba.php?providerid=157&startdate='2018-04-05'", function(re...
asked by 11.05.2018 / 18:10
0
answers

Problem in sum overloaded with array pointers [closed]

I have an overloaded operator + that returns an object of type IntArr, the sum of arrays is done well inside the function but when I do A = B + C the first two elements are not copied, leaving any numbers, why Does this happen? Thanks Over...
asked by 21.04.2018 / 17:01
2
answers

Help to search in a fix a name entered by keyboard and display the index in the one that is inside the array?

ArrayList<String> nombres = new ArrayList<>(); nombres.add("Pepe"); nombres.add("Juan"); nombres.add("Oscar");     
asked by 02.04.2018 / 01:37
1
answer

convert file content to array

I'm having problems when I convert a csv file to an array. You see, I created a function that makes that conversion and returns the array. The process does it relatively "well" and it generates the array but fix as it is the resulting array:...
asked by 07.04.2018 / 04:47
1
answer

highChart dynamic graphics, irregular time intervals

I use a function in java script, which uses a static method to query the server, obtaining as a response a DataSet with several tables sereializado as object JSON (string json = JsonConvert.SerializeObject(_dsCon);) and...
asked by 09.04.2018 / 16:30
1
answer

Optimize string replacement in PHP

I am trying an array of considerable size with some data that I would like to group. This would be an example of the array: [24] => Array ( [0] => /03-19_solemnidad-de-san-jose-homilias/ [1] => 53 ) [25] =&...
asked by 20.03.2018 / 16:27
3
answers

Create a 4x4 arrangement in java

I need to create an arrangement with the following numbers and calculate: By line: The average and the standard deviation The average and standard deviation of the entire arrangement    {3,8,7,6} {7,5,7,4} {3,2,1,0} {9,6,4,8} This i...
asked by 17.04.2018 / 05:01
1
answer

How to generate an array with values without these being inside an index subarray 0 in PHP?

With this code: $template["letras"][] = $letras; $template["animales"][] = $animales; $template = array( "letras" => array("a"=>1, "b"=>2, "c"=>3), //sin comillas al cierre "animales" => array("leon"=>1, "vaca"=>2...
asked by 19.03.2018 / 15:39
2
answers

Sort an array descending in PHP [closed]

Do I need to show that on the screen with a array with PHP, any suggestions? <?php $number= array("1","2","3","4","5","6","7","8","9","10"); arsort($number); for($x = 0; $x < count($number); $x++) { echo $number[$x]; ec...
asked by 27.02.2018 / 18:33