Questions tagged as 'array'

1
answer

Vector of char by reference

I'm trying to pass a array from char to a procedure that will resize (with malloc() ), write its contents and return to main() . I know that every vector is a pointer and is already passed by reference, but something in...
asked by 01.11.2017 / 18:03
2
answers

How to add items to an array correctly?

I'm trying to create arrays with days of the week. "Apparently" seems to work: $array_dia_da_semana = array("DOMINGO","SEGUNDA","TERÇA","QUARTA","QUINTA","SEXTA","SÁBADO"); $array_dia_da_semana_d = []; $array_dia_da_sem...
asked by 14.08.2017 / 18:57
1
answer

FirebaseListObservable transforms into Object Array

I'm using Ng2-Smart-Table, according to the documentation it accepts an array of objects to mount the table: No HTML: <ng2-smart-table [settings]="settings" [source]="data"></ng2-smart-table> In Javascript import { NgxData...
asked by 31.05.2017 / 14:04
1
answer

Values are being sent null

For some reason the arrays are being sent null in setListGrades, however inside the log shows the normal arrays. The API is being consumed correctly, so why is it null in sending this method? @Override p...
asked by 23.04.2017 / 17:28
1
answer

Attempting to create two-dimensional arrays as objects

I'm trying to create a simple program that allows me to create 2d arrays with different objects. My thought process was that I should be able to create objects with arguments (as declared at the beginning of the class and referred to in the co...
asked by 12.08.2017 / 18:30
2
answers

Invert values from one vector to another vector

I am in the second semester of college, we are learning vector, and I am very lost in the list of exercises. An exercise asks the user to type 5 elements for a vector, and then I have to get these elements, send them to another vector, only w...
asked by 18.02.2017 / 13:01
3
answers

How to dynamically increase the struct size?

How can I increase the size of the struct when the current size is reached? #define TAM_MAX 50; typedef struct{ char nome[TAM_NOME]; /* nao pode ser vazio*/ char sobrenome[TAM_SOBRENOME]; char telefone[3][TAM_FONE]; /* mo...
asked by 06.11.2016 / 17:31
1
answer

Search for Array () in the variable and database

I have the following fields in Array (): # Tratamento das variaveis para substituição da mensagem $campos = array( 0 => '#celular', 1 => '#ddd', 2 => '#cpf_cnpj', 3 => '#nome_razaosocial', 4 => '#mensagem',...
asked by 28.10.2016 / 14:24
1
answer

Searching Array of variables via Ajax and inserting in its due inputs a form

I have a form that searches and fills, via ajax, the person's name and year of birth (in their respective fields), all from the cpf entered by the user. It's something like this: Digite o CPF do usuário ______________ <button>BUSCAR...
asked by 05.08.2016 / 01:13
1
answer

Insert an array inside a Key Json

I need to get a Json as follows: { "razao_social": "Loja do Zé LTDA", "nome_fantasia": "Zé Store", "tipo": "J", "observacao": "Cliente com ótimo histórico de pagamentos.", "emails": [ { "email": "jose@ze...
asked by 10.06.2016 / 19:52