Questions tagged as 'array'

0
answers

Notice: Undefined index when sending arrays by ajax

something strange happens to me, I used the same code in another part of my project and it works perfectly but when passing array by ajax I am receiving "notice Undefined index" I have used different variants that I have found to pass arrays cor...
asked by 23.08.2018 / 04:56
1
answer

How could autogenerate chain type code?

I have the doubt on how to generate auto-generate chain codes with a counter that is: e001 e002 e003 e004 ... the following code is generating e000 e000 e000 e000 If someone could help me, it would be great, thanks public cla...
asked by 18.08.2018 / 05:12
1
answer

Help with exercise in JS

Good afternoon I hope someone can help me, I had to do an exercise in which I stored the cards of a deck, I separated them in black letters and red cards, then I took out the red and even cards and I printed the last card, all of According to th...
asked by 04.08.2018 / 22:16
1
answer

STRUCT CUSTOM JSON ARRAY?

My JSON is this: { … "episodes": { "1": [ { "id": 533072, "season": 1, "episode": 1, "nombre": "La hija del general", "firstaired": "2012-1...
asked by 03.09.2018 / 20:45
1
answer

Problem with a C exercise

Hello good results that I have a problem with an exercise, the enunciation is the following: -Write a program that reads a file created called "personas.txt". This file contains data from three people: (people.txt) ·First name ·Surname · N...
asked by 28.05.2016 / 13:17
1
answer

Help in Study Workshop

I have a problem with my code I have to do this work, and I can not calculate the total values by reading an external file, with these characteristics in Java. I have this code worked, that calculates the values of the score of the comp...
asked by 12.07.2018 / 04:47
0
answers

How do I make an integer vector without knowing its Java length

I need to store the prime divisors of an 'x' number in an array Since I do not know how many prime divisors that number has, I can not determine the size of the array. import java.util.Scanner; public class vectorDivisoresPrimos { public...
asked by 09.06.2018 / 16:14
1
answer

Doubt for-in loop in Swift

I'm trying to do the following exercise in Swift: Create the function obtenerFrecuencias that allows you to calculate the frequencies of a set of answers, numbers between 0 and 9, which are stored in an array of Int. Example: l...
asked by 07.06.2018 / 02:02
1
answer

Take data from the array to independent variables. MYSQL

I have a query SQL that brings the data that I want perfectly. When doing a print_r it shows it to me like this: Array ( [0] => 6 [idFormacion] => 6 ) Array ( [0] => 9 [idFormacion] => 9 ) Array ( [0] => 12...
asked by 10.06.2018 / 20:25
2
answers

Get Array list with JSON in android studio

I have a problem that takes several hours to bother me. I have a dialog that is based on notifying if there is a new version of the application and sends a message with the available version along with the changes in it. I have this code:...
asked by 06.05.2018 / 04:57