Questions tagged as 'array'

0
answers

PHP Array for formatting tree

I'm trying to transform this array Array ( [0] => Array ( [enc] => Array ( [enc_obs] => Continua ) [1] => Array ( [per] => Array...
asked by 22.05.2016 / 19:22
0
answers

How to delete elements of a record vector in Pascal

I am doing a pro-course work, and every time a person types a value of an index of the element of the registry vector, all the data in it is deleted, would that be possible? If so, how do I do it?     
asked by 16.06.2016 / 08:46
1
answer

How to join two Arrays?

Hello, I have the following problem I have an ArrayList that returns several small arrays of two positions String[] temp = new String[2]; and has the arrayList that saves adds several "temp"; ArrayList lista = new ArrayList(); while(rs.ne...
asked by 17.05.2016 / 16:47
1
answer

Printing and Vector Allocation in php cli

I'm doing a program in PHP that simulates the allocation of programs in a Memory. The problem is that it does not allocate the data in the vector. It prints the vector as if it were the same after its initialization <?php // echo phpversio...
asked by 11.06.2016 / 04:24
0
answers

Vector Indexing in C

I have this function that is called through a menu of options: char cad_cliente()//cadastro de clientes { char resp;//variavel de resposta se cpf invalido system("cls");//limpa tela for(int c = 0; c < MAX ; c++)//para a primeira inform...
asked by 14.05.2016 / 21:25
2
answers

Problem with dynamic allocation of two-dimensional arrays in C

I need to make a matrix product where the user must enter the dimensions and terms of the matrices, but the program simply stops working. Here is the code: #include<stdio.h> #include<stdlib.h> int main(int argc, char const *argv[])...
asked by 04.05.2016 / 01:43
1
answer

Knowing how many elements I have in an Arduino array

I have an ARRAY of at most 100 lines by 2 columns, which will be filled by a user. My program will play back user activity later. What I want to know is how to know how many rows were filled with data. Is there any C command for this?    ...
asked by 07.05.2016 / 23:59
1
answer

View Page Android - pick list of images inside the App and set it on the View page.

I am having a problem when I need to set my variable in View Page. I have an Activity that looks for the images inside the App and arrow in a String Array, until then everything is correct, I use the code below. ContextWrapper cw = new Cont...
asked by 09.05.2016 / 17:50
0
answers

Insert an array with codeIgniter and ajax

Hello I'm trying to insert an array, but in this case, you can insert multiple lines in db. How do I pass the pro codeIgniter data: var productsData = []; $(".productRow").each(function(i){ var pData = {...
asked by 18.04.2016 / 01:50
0
answers

Array Merge through a comparison

I need to compare the arrays through the key called code, and if the keys are the same, join the arrays in a single array, see the example below: $array1 = array(array('id' => '1', 'codigo'=>'1155', 'preco' => '25.00'),...
asked by 25.10.2016 / 18:35