Questions tagged as 'array'

1
answer

document.querySelect in body

How to use the code session document.querySelector to change / change the background image of a page <body>...</body> Ex: var imagem_lista = [ "http://static.gamespot.com/uploads/original/1179/11799911/2324138-...
asked by 29.07.2015 / 23:10
2
answers

Convert string to array along with delimiter

I am separating a string in array if there is a certain preposition in it ('with', 'to', 'by'), but I want to return the string containing the delimiter as well, ie the preposition. > Using preg_split and explode, I have the same and unsatisfa...
asked by 08.09.2015 / 16:55
1
answer

For in VBA Matrix

I have a database composed of two vectors: u=(a,b,c) and v=(1,2,3) In another worksheet, I have two blank vectors x and y . I need to complete the input of x (from u ), the code returns the corresponding e...
asked by 01.07.2015 / 02:04
1
answer

Ordering of string vectors and numbers

I have a problem with a facul exercise. Basically it is a store system, where I enter with the amount of stores, the quantity of products, the name of the products, and the quantity of products in each store. So far so good, my problem is in the...
asked by 03.05.2016 / 22:07
1
answer

Access object array inside a switch

Good evening, I'm having difficulty accessing and modifying an array of main class objects within a switch in the view class. The array is declared as such in the main: public class Controle { public static void main(String[] args) {...
asked by 22.11.2015 / 01:14
1
answer

Set values of an array recursively

Assuming I have the following array array( 'chave1' => 'valor1', 'chave2' => array( 'chave3' => 'valor2', 'chave4' => array( 'chave5' => 'valor3' ) )) And in this array I need to set the value of key 5, bu...
asked by 14.06.2015 / 23:40
2
answers

simple problem with Vector and Structs

Hello, I would like to know why it is not going, I have looked in many places but can not find in C #include <stdio.h> typedef struct ficha_pessoal{ int idade; char sexo; int CPF [11]; int CPFc [3]; float salario;...
asked by 07.12.2015 / 18:32
1
answer

C-maze structure

Well, I would like to make a game in C "console" but I have a question .... Basically the idea is to have a character that goes forward in a labyrinth thanks to the user, if the user type "right" the character moves to the right etc. I imagin...
asked by 22.11.2014 / 15:42
1
answer

Taking a single value for PHP

$ch = curl_init('site'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/6.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3"); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);...
asked by 18.12.2014 / 22:11
4
answers

Receive an array in the controller from javascript

I'm creating an array with a list of data in javascript: var myArray = gvSortingListagemGARs.keys; Where I have the result: [278, 279, 280, 281, 282] That are id's of elements of a Devexpress table. Now I'm trying to pas...
asked by 31.07.2014 / 13:09