Questions tagged as 'array'

1
answer

Get array values returned from another class

I need to pass the value of the variable sgEstado to the other class but I can not, the value is in return when debug , but I can not make the value quit in the other class. p> ArrayList estados; try {...
asked by 16.10.2014 / 14:17
1
answer

C ++ / Arduino Array in class

I have a problem in using an array of pointers, I need to create an array with pointers that refer to an integer value of each object of another class. Example: arrayDePonteiros[0] = objeto.int; In case this array is inside a class and a...
asked by 16.08.2014 / 22:51
2
answers

Working with PostgreSQL array data types using Hibernate

How to perform object retrieval and saving using columns of type array using Hibernate ? In my case I want to save String . How do I set% object_to%? I found the net some examples but they did not work. My class model...
asked by 25.03.2014 / 21:49
2
answers

How to create a sequence of messages in Javascript?

I have an application made in Node, Express and Socket.oi in which alerts are sent to a certain screen that receives the message through socket.io, in this screen I receive the message, format it in a dialog and screen display which is hidden af...
asked by 17.12.2018 / 20:51
1
answer

PHP MYSQLi Array no select html

I'm a beginner in php and I'm developing a small system for my company that already serves as a study, because I really like this area, the question is simple, I have the following code: <?php include('conn/conexao.php'); $edt = $_GET['edit...
asked by 29.12.2014 / 14:00
1
answer

Method Call with Parameters of an Array

I've always created vector methods using: void exemplo(int vetor[], int qtd){ // Código... // ... } And I never had problems, but I'm trying the same with arrays and I get an error void exemplo(int matriz[][], int lin, int col){...
asked by 18.09.2015 / 09:57
1
answer

How to Fill Only Selected Input

I'm having a problem popping up a field inside a table that is within a loop For , and one of the titles in this table is a modal, button as it is clicked opens a selection of units of measure . And when the user selects the drive,...
asked by 27.11.2017 / 20:46
1
answer

error in getting values from array stdClass php

When I use echo var_dump($location); I get this: object(stdClass)#1226 (2) { ["type"]=> string(5) "Point" ["coordinates"]=> array(2) { [0]=> float(44.0928438) [1]=> float(-70.20876942) } } I tried to get the floats (44.09...
asked by 24.05.2014 / 04:10
2
answers

Repeated elements in an array

I'm trying to make an algorithm that finds repeating elements in any array but I do not know how. The algorithm should not check the repetition only in rows or columns, but in the whole array (this seems to me to be the most complicated). Cou...
asked by 20.05.2015 / 15:19
1
answer

Check if array is associative in a class

I have a class in which I need to do certain checks on an array, such as checking whether it is associative or indexed. I know there is no native function in PHP that does this, so I could use the example below. function isAssoc($arr) { re...
asked by 31.10.2015 / 22:50