Questions tagged as 'array'

3
answers

Traversing array of objects and accessing a value

Good afternoon, I have a difficulty, where I need to access an element of an array of OBJECTS, I'm not able to access with the foreach, or for. I need your help! The array of objects: Array ( [0] => stdClass Object (...
asked by 11.10.2016 / 15:56
2
answers

How to add item in array through a foreach?

I'm doing a check in a directory where all the items with a specific extension are ready. I need to add the items in an array via a foreach . Here's part of the code I've tried. DirectoryInfo di = new DirectoryInfo(_caminhoEmail...
asked by 11.10.2016 / 15:35
2
answers

JavaScript Array php values

In my database I have id , coluna1, coluna2 1 , 38.951399 , -76.958463 2 , 38.942855, -76.959149 I'm using php I need to transform this information into an array in JavaScript with the following structure new Array([38.951399, -...
asked by 31.07.2014 / 14:46
3
answers

problem in C with remainder of the split [closed]

Develop a program that reads ten elements of a matrix A vector type. Construct a matrix B of the same type, observing the following formation law: if the value of the index is even, the value must be multiplied by 5, being odd, must be added wit...
asked by 22.09.2015 / 16:11
1
answer

Difficulties with Array Class binarySearch method

I created two arrays one of integers and another of Strings (objects), but when I used the binarySearch method to know the position of the elements, the return of the positions of the Strings array went differently, why did this happen? showin...
asked by 15.04.2014 / 07:07
2
answers

Problem loading file in memory

I'm trying to load several files into memory (small files), but the problem is that when I try to load another file soon then all files have the same name as the last file loaded. I'm using a struct that contains name, size of the name...
asked by 17.07.2014 / 00:39
1
answer

Save Integer, Integer, ArrayListInteger in a collection

What I want is to do a data binding as follows: (<<Integer>, <Integer>, ArrayList<Integer>) I tried to create a HashMap<Integer,HashMap<Integer,ArrayList<Integer>>> the problem is that I forgot...
asked by 04.12.2014 / 12:05
2
answers

How to tell if an NSArray is empty (or null) using IF

I need to know if an NSArray is empty or null using an if. Code: NSArray* array; if( array == nil) { // Fazer algo }     
asked by 08.09.2014 / 02:58
1
answer

Create an array with dynamic variables

I needed to create dynamic variables and I used this script: for($i=1;$i<=40;$i++){ ${"horario" . $i} = get_custom_field('horario'.$i); } It generates the variables $ schedule1, $ schedule2, ... Now I need to group all these variab...
asked by 04.09.2014 / 18:11
2
answers

How to transfer full form array to another PHP file?

I have this form and I want to pass the array (as it is) $array_dos_pagamentos to recive.php but I can only pass single values. How can I pass the complete array? <form action='http://www.xxx.com/wp-content/xx/xx/recive...
asked by 14.01.2016 / 19:25