Questions tagged as 'array'

1
answer

Send array by GET

I am sending% of a array in JavaScript to another page via a GET by calling the function. The problem is that sending is in string and not in array . I want to pass this array to the Lua language. This array contains values. Exam...
asked by 12.03.2015 / 17:07
2
answers

Concatenate variable in array

I have to request a json for a api , however I have to retrieve data from a form to complement this json , the problem is that by saving the data to a variable I can not put it Correct way within that json , I tried to c...
asked by 04.11.2017 / 20:28
3
answers

How to make an error message for this situation?

arq=open('filmes.txt','r') filmes = arq.readlines() def buscaPorGenero(): genero=str(input("Digite o gênero do filme: ")) while(True): for linha in filmes: linha = linha.split(";") if genero in str(linha[1]): prin...
asked by 12.12.2017 / 03:06
2
answers

Function that returns an array of strings that are in all arrays

Talk to people, all good? My question is simple, but the solution may not be as simple as that. The truth is that I am doing a job in JS and soon I will need to solve a problem that will make me lose a few hours breaking my head. So I d...
asked by 27.06.2017 / 14:32
1
answer

Segmentation fault when accessing pointer contents

I need to declare a vector of pointers, which will point to types float , and do a simple reading of values. The program compiles but after entering 4 values I get a Segmentation fault (core dumped) . Why does this occur because I'v...
asked by 22.12.2015 / 12:55
1
answer

How to extract only different values from an array?

I am extracting from a array city name. I want to extract cities with different names. In the current case, my script returns several names of equal cities. I want to recover only once each city name. The result is this: Array (...
asked by 03.01.2016 / 02:15
2
answers

Find values in an object

I'm trying to access properties of an object, a dictionary. However the references are in {String} format and their concatenation through dot (. ) and I'm using split() to break this {String} into an array ... make me use...
asked by 14.01.2018 / 03:03
1
answer

Passing by reference printing garbage in the vector

Personal I made a simple code but I have a problem. I did an "increase" function to increase the size of a vector; The function receives the vector and passes the values of that vector to an auxiliary vector. So I can delete the vector, allocate...
asked by 05.06.2017 / 06:14
2
answers

Push () does not work in VueJS?

I need to push () on the% void of VueJS and have it add another object to the array of objects it has there. But when I click the button I programmed to do this push () it just does not. Follow the code below: atualizar () { axios({...
asked by 24.08.2017 / 15:06
1
answer

Converting String in ArrayList

I am getting in my java code a variable with the following value String arquivo = "CNPJ;INSCRICAOESTADUAL;COD_IBGE;DT_OPE;VLR_CARTAO_CRED;VLR_CARTAO_DEB 35083840049;0;4312476;13/01/2018;0.00;66.00 35083840049;0;4312476;18/01/2018;33.00;26.00 3...
asked by 24.05.2018 / 19:53