Questions tagged as 'array'

1
answer

Move specific value in PHP Array

I have a connection via api with a third party system, I am getting the values in this format: Array ( [code] => 200 [data] => Array ( [subscription_id] => 2752 [status] => new [custom_id] => [charges] => Array ( [0] => Ar...
asked by 30.08.2016 / 01:37
2
answers

Sorting all elements of a multidimensional array

I need to sort the array below in alphabetical order using the numeric key: Array ( [AM] => Array ( [1] => Array ( [localidade] => Arena da Amazonia [cida...
asked by 23.06.2016 / 18:59
1
answer

How do I get the Array generated from the print_r () function to send in email?

I'm developing a logging system and need to get the data generated by print_r () , to send in the email in case of an error in the API, this way the developers will be warned, already containing all the data, including the array. Thank you!...
asked by 18.07.2016 / 20:32
2
answers

How do I get a return of an ArrayString on a GET call with task.resume ()?

Good afternoon, everyone. I'm having trouble loading the contents of a PickerView into my app, because for this it needs to fetch the information on a GET call, the call works and I can set array to the content I need, but I can no...
asked by 29.10.2015 / 20:12
1
answer

Mark unused positions in a vector

We assume that, in given implementation, the positions of a vector can contain values of -2^16 to 2^16 . You must "mark" unused positions (for example, put a *). However, given the range of values, setting the positions with -1,...
asked by 03.11.2015 / 05:17
1
answer

Faster way to add an item to an array, use a structure

Structure turma Public id_turma As Integer Public nome_turma As String End Structure Structure Disciplina Public id_disciplinas As Integer Public nome_disciplina As Integer End Structure Public Class F_Contentor Dim turmas()...
asked by 22.02.2016 / 18:08
1
answer

Define an array and the type of a function in C

Hello, I'm developing a C language initialization project, namely creating a Multimedia Management System that will have to be able to manage a database of record items like CDs, DVDs and Vinyl Records. > At the moment, after declaring the...
asked by 02.03.2016 / 14:32
1
answer

How to make an array of objects?

How to do an array of objects? I am trying but I am not succeeding, it returns me an error:    line 26 [Error] no match for 'operator []' (operand types are 'Time'   and 'int') Code: #include <iostream> #include <cstdlib>...
asked by 29.09.2015 / 03:49
2
answers

Problem with malloc

Galera, to make a small program that given any number, enters a function that divides the number into a vector and returns the number of decimal places (number of positions) that the vector has. In all the guides and tutorials I see says that th...
asked by 06.09.2015 / 23:46
1
answer

How to combine four or more arrays?

I would like to combine four or more array's. With two array's, I use array_combine and I have the expected result, already with four, no. What function should I use to combine four array's? Follow my code: HTML <input type=...
asked by 07.09.2015 / 16:14