Questions tagged as 'array'

1
answer

how to go through the next arrangement? in php

Array ( [0] => Array ( [0] => Array ( [estatus] => ok [mensaje] => Mensaje enviado [referencia] => 2017081504081721546 [numcelular] =>...
asked by 15.08.2017 / 23:07
1
answer

Do double split in Java and get two sets of values

I'm getting this string in Java: Respuesta1_10|Respuesta2_50|Respuesta4_90|Respuesta5_33 And I need to build two groups of values with it dynamically, since the amount of values separated by | is not fixed. The groups of values would...
asked by 07.09.2017 / 06:27
1
answer

Variable arrangement in C

I have made a code in which I indicate the amount of values that my arrangement will have, it introduces them well but then it does not visualize anything to me. I do not know where the fault is, I think I'm giving back something wrong. Code:...
asked by 28.08.2017 / 20:30
1
answer

Search of data of an array on two arrays

I'm doing a code to try to convert some data into a table. Specifically, I have the data in 3 arrays with the following form: Survey [ age , name_of_periodico ] Interval [ First_number_of_interval (the number minor), Second_numero_...
asked by 02.05.2018 / 13:25
2
answers

Concatenate char of an array in C

I have a char pointer with numbers , which would be: puntero = [1,2,4,5,\n,2,3,\n,5,2,1]; How can I make the following?: nuevo = [1245,\n,23,\n,521]; , \n is a line break, it's just to represent it. I have t...
asked by 23.10.2016 / 21:53
1
answer

Why is this program broken by entering a few elements?

Algorithm At the beginning the array is of length = 0. Then, in each iteration, when trying to enter an element, the array becomes of length + 1; then, said element occupies the position length-1. Goal That an element is entered int...
asked by 29.03.2016 / 04:11
1
answer

Add index to associative array in php

I am creating an associative array through php after doing a data validation, this code is to make the "fullcalendar" library work. However, at the end of that validation I need to do a second validation to add another index, but for some reason...
asked by 19.11.2018 / 14:51
1
answer

Create an array with date and time data in php

I have to create an array in PHP with information that comes from a json. Currently I have my code that creates an array where it keeps the date "10-15-2018" with its total number of messages. Now I need to modify my array to be able to ca...
asked by 22.10.2018 / 03:07
1
answer

When sorting an array removes data

I am programming a genetic algortimo so that this solves problems of linear programming, I am using C language, when calculating the limit of the variables I keep the values in a float type array, I need to order that array but it erases a data...
asked by 22.04.2018 / 20:42
1
answer

Error adding the array with double data

The code below works as it should, in case anyone wants to use it, I thank all those who commented Giving linear algebra are teaching me operations with vectors and to simplify my life I wanted to make a code for this, I am not very profi...
asked by 31.05.2018 / 11:03