Questions tagged as 'array'

0
answers

Compare values of a multidimensional array in php

I have the following array I need to generate clashes between them random and teams of the same array Ex. Santos and São Paulo can not face each other !! array(5) { [1]=> array(2) { [0]=> string(6) "Santos" [1]=>...
asked by 25.07.2016 / 04:07
1
answer

Check array braces

Next, I have a saved array value in the $chaves variable as in the example below: array(2) { [0] => array(1) { ["chave"] => string(1) "1" } [1] => array(1) { ["chave"] => string(1) "3" } } I made a...
asked by 18.07.2016 / 21:46
0
answers

Constructing a java table from a vector as a parameter

Hello! I'm having trouble building a table. It is as follows, the user defines a series of variables that are stored in a vector. I would like the variables stored in this array to be the name of the columns in the table. The problem does not in...
asked by 14.07.2016 / 20:42
0
answers

Vector ordering

I'm learning about vectors and arrays, and for a long time I can not solve a question correctly. The statement says: Given some vector, sort it sequentially (numeric). Example: Entrada:{1,2,2,3,3,4} Saída:{1,2,3,4,2,3} I've made a co...
asked by 08.07.2016 / 18:38
1
answer

How to extract a data from an array in php

Good people, well my little script for posts checks if it already exists, if yes it does not record, if not it writes to bd. I want to put a tanned system in it, so I created a table but for me to identify the post and I need the ID of the post...
asked by 06.07.2016 / 02:00
1
answer

Control point staff card

I need to make a table that shows whether the employee is missing or not. if there is no need to show your point beats in front of the respective date. Can anyone help me? Example: In my bank I have several employees registered, assuming I...
asked by 17.06.2016 / 16:26
1
answer

Counting Numbers using Array in C

How to count integers using an array in C in this model: Entry > two strings with "integers" ex: 8 15 Output > A string with range numbers, inclusive: ex: 8 9 10 11 12 13 14 15. Probably a basic question, but I'm a beginner...
asked by 18.10.2016 / 15:58
0
answers

Create an arraylist in one class and use it in another

My problem is the following I have a class that contains an arraylist, I need to use the objects of that arraylist in another class. I'm having trouble creating. I'm a newbie and I have not moved on yet.     
asked by 31.05.2016 / 23:27
1
answer

Function Reference in the Array in Ruby

I could not understand how the relationship in Ruby is to the reference of an array variable ( best and vector ) with the return of a function or bitstring for example). Consider the following case: best[:fitness] Where best is an...
asked by 08.06.2016 / 03:50
1
answer

How to do a findOneAndUpdate in an array inside another array with Mongoose

I'm a beginner in Mongoose, I would like to make a change ( findOneAndUpdate ) in the second array address in the city field, I tried everything I knew and thank no one that can help. { _id: "573c5ed236c156cc2351d1ea", tit...
asked by 19.05.2016 / 20:48