Questions tagged as 'array'

2
answers

How to sort the position of a matrix automatically?

Example, I have: $matriz = array("Tomate", "Morango", "Melancia"); I would have: ( [0] => Tomate [1] => Morango [2] => Melancia ) But if I do: unset($matriz[0]); I'll have: ( [1] => Morango...
asked by 24.06.2017 / 03:16
1
answer

Javascript - Sum and Group By in Array

I would like a tip / help. I'm working with a series of JSON files, and applying filters to them as the user progresses through the system. So far so good, I managed to do it quietly using .filter() . My problem is in the n...
asked by 11.02.2016 / 17:11
2
answers

How do I pass an array of structure pointers to a function?

#include <stdio.h> #include <stdlib.h> #define NUM_NOTAS 5 #define TAM_NOME 20 struct Aluno{ char nome[TAM_NOME]; int numero; int notas[NUM_NOTAS]; }; void preenche(struct Aluno* lista[], int tam){ int i; int j; for(i=0;i<...
asked by 04.01.2017 / 16:31
1
answer

Get ArraySegment values

When creating a ArraySegment , I'd like to get the new array created, but when using: meuSegmento.Array; the original array is returned and not the created thread. string[] meuArray = {"stack", "overflow","em", "português"}; var...
asked by 18.02.2016 / 12:59
1
answer

Would an alphabetical sequence counter be possible?

I'm doing a pascal code where one of my arrays has alphabet values (A to Z) for a personal project of type Questions and Answers / Meanings from A to Z : > aux[1]:= 'a'; aux[2]:= 'b'; aux[3]:= 'c'; ... aux[24]:= 'x'; aux[25]:= 'y'; aux[26]:=...
asked by 18.02.2016 / 05:04
1
answer

How to identify exactly which record has changed from one list to another? By ID

Hello. I have 2 lists being assembled in javascript, based on the rule: Do you have flag Automatically DispatchedNotes as true in the database? Then it stays in the Array: clientsDownloadTrue Do you have flag queryNotesAddressed Automat...
asked by 25.02.2016 / 14:10
2
answers

Help with Java exercise

I have a problem with a JAVA exercise, I can not fix it, although I'm pretty sure it's pretty simple. It's a simple crud: Below is the main code import java.util.Scanner; public class Crud{ public static void main(String[] args){...
asked by 02.01.2017 / 17:30
1
answer

Array PHP for Array JS

I have the following array in PHP Array ( [0] => Array ( [Funcionarios] => Array ( [id] => 3 [nome] => Funcionario Teste [assistmed] => 10...
asked by 28.12.2016 / 14:15
1
answer

Passing an array from a form to PHP via AJAX

I have this form:                                                        jQuery (function($) { AddTableRow = function() { var newRow = $("<tr>"); var cols = ""; cols += '<td><input type="text" name="dados[]...
asked by 26.12.2016 / 17:09
1
answer

JSON array with checkbox AngularJS

I'm trying to form a JSON with what is selected by checkbox , but when I select it it inserts, but when I try to get check , it reinserts. The correct would work this way , but forming a array of JSON and not just words or numbers....
asked by 10.12.2015 / 19:36