Questions tagged as 'array'

1
answer

Alphabetical ordering in Array with objects in array PHP

I have the following array in php: Array( [0] => Array([id] => 1 [nome] => b parceiro um [status] => true [descricao] => <p>Descrição do parceiro</p>) [1] => Array([id] => 3 [nome] => f parceiro tres [st...
asked by 10.04.2017 / 23:58
2
answers

How to fill in a C #

I need a feature similar to the one below: email ListaEmail = new email(); … while … { email Email = new email(); Email.email1 = adoDR["email"].ToString(); Email.tipo = adoDR["tipo"].ToString();...
asked by 23.01.2017 / 11:34
1
answer

How to concatenate strings of a 3-in-3 vector in Java?

I need to concatenate the elements of a 3-by-3 vector. Here's the sample I need: package ex; public class prog { public static void main(String[] args) { // TODO Auto-generated method stub String[] vetor = {"aaa", "aa...
asked by 21.12.2016 / 03:05
2
answers

how do I access the values of a struct?

I need to print the read values on the keyboard of a struct vector that form a coordinate. The problem is that when I pass the struct vector of the function that picks up and stores the data for function that will print them on the screen, the o...
asked by 08.12.2016 / 00:57
1
answer

Get item from an array with jQuery

I have the following structure: [{tabela: 'tabela1', coluna: 'coluna1'}, {tabela: 'tabela2', coluna: 'coluna2'}] I need to enter this data within div in the format:    [TABLE.COLUMN] In case it would stay:    [table1.column...
asked by 08.09.2016 / 16:39
1
answer

How can I not display the null positions of a vector in the output?

How do I not display those gigantic numbers referring to the empty positions of my vector? My code: int main(int argc, char** argv) { double notas[10]; double soma = 0, media = 0; int i, P[10]; int j = 0, count = 0; for(i=0;i<10;i++){...
asked by 20.08.2016 / 01:51
1
answer

Working with arrays and conditions

Personal I have three arrays received via POST: [campo_habilita] => Array ( [0] => Habilitado [1] => Habilitado [2] => Habilitado ) [campo_nome] => Arra...
asked by 27.09.2016 / 17:48
6
answers

Transform json array into php array

Well, I have a little problem that I still can not solve. I already looked it up on Google, and the solutions I found did not serve my problem. I need to transform the array "Players" that is in this JSON: link in one PHP Array. { "Stat...
asked by 04.10.2016 / 21:28
1
answer

ArrayIndexOutOfBoundsException error while executing code

My code is giving the following error:    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 10 at t151.main (t151.java:19) What does this mean and how do I fix it? Follow the code: public class t151 {...
asked by 03.11.2016 / 23:36
1
answer

Variable-sized object may not be initialized

Problems in C. This error is appearing:    Variable-sized object may not be initialized What can I do to fix this error? Being that I have already initialized everything. LINE 66, 67 and 68 #include <stdio.h> #include <stdli...
asked by 06.11.2016 / 17:13