Questions tagged as 'array'

1
answer

Convert JSON to Array in Javascript

Good afternoon, it's my first question here. I'm getting the json below through an ajax request. [ {"SEMANA":1.0,"PRODUCAO":0.0,"PRODUCAO2":0.0}, {"SEMANA":2.0,"PRODUCAO":29280.0,"PRODUCAO2":55992.0}, {"SEMANA":3.0,"PRODUCAO":93...
asked by 03.12.2014 / 20:36
1
answer

Copy, Paste and Cut an Array of integers in java using Clipboard?

Personal greetings, I was trying to do the Copy, Paste and Cut using an Array of integers in Java, but I found a lot of difficulty and little material (mainly in Portuguese).     
asked by 12.01.2016 / 04:17
2
answers

Handling Array in PHP

I'm creating a PHP that creates graphs using the Google Charts, but i can not supply the function with all data from the array. When I print the function, instead of him print all the states of the array, it only prints the first. I'm doing as f...
asked by 24.03.2014 / 21:04
1
answer

Problem with vector with dynamic allocation

The intention of this program I am doing is to serve as if it were a banking system in which the amount of accounts to be created do not have a previously defined amount. In main() , I call the function inserir() , and print it right...
asked by 30.08.2018 / 15:59
3
answers

Multiple UPDATE from a dynamic field

I'm trying to get the% s of% s that comes from checkboxes selected by user (array), and through these id s, make an update to the table, with the following code: $ocs_imp = $_POST['check_imprime']; $contar = count($ocs_imp); $id = impl...
asked by 16.01.2015 / 03:21
1
answer

Check if a value corresponds to a value in an array

How to check if a given value corresponds to another in an array? Ex: array1 ={nome = "Fulano", idade = 15} print(array1[idade].nome)     
asked by 27.07.2014 / 11:26
1
answer

Parsing columns of numbers from a CSV file in C

Hello, Good Night I have a simple .CSV file, containing only two columns, separated by a comma and the new line, as an example: 0.001,-9.623 0.098,2.540 1.000,-1.002 And you need to separate them preferably in two vectors, or in an array...
asked by 19.03.2018 / 02:23
2
answers

Help in a PHP logic

I have a big problem for me * ini_set('display_errors', true); error_reporting(E_ALL); header('Access-Control-Allow-Origin: *'); # header('Content-Type: application/json'); header('Character-Encoding: utf-8'); define( 'MYSQL_HOST', 'l...
asked by 10.05.2018 / 22:04
1
answer

JQuery - access array error

I need to compare two arrays, one with calendar days and one with registered days. When the registered day is corresponding to the value of the innerHTML property of the array of div it should paint the background of this div...
asked by 02.01.2015 / 22:19
2
answers

Doubt about array size

I have a question regarding array, for example, if I have 2 arrays of size 9 and to print the values of both is normal the input 9 get the value 0 of the next array?, this is another test, I know the maximum is 8? Code sample: struct stType...
asked by 15.01.2018 / 17:35