Questions tagged as 'array'

1
answer

Convert parameter of a function automatically to string

I would like to create a function that has as parameters the name of an array and any string. The goal is that just by entering the names of both things, the function logue the index of the item, if it exists within the array (no need to use qu...
asked by 15.09.2018 / 15:32
1
answer

Arrangements of objects as compare [duplicate]

I would like to know how I can make my method print, print the object. and I run it in the bubble method, I also add my test code. Because what I print is    ordenamientos.Persona@15db9742 - ordenamientos.Persona@6d06d69c - ordenamientos.Pe...
asked by 15.09.2018 / 06:26
0
answers

Delete elements of a vector consecutively (Java)

I have already tried two different methods but I have the same problem and I do not know how to delete items consecutively from my number array in BigInteger. Here is the code: BigInteger[] recov = null; BigInteger del = new BigInteger(...
asked by 10.09.2018 / 02:07
1
answer

how can I declare an equation in a for so that all the values in my array do it

I would like to know how I can make a function, take all the values of my array. and save them in a new variable. I attach my code, I hope it works import matplotlib.pyplot as plt l = [36.83, 31.75, 43.815, 36.83, 32.06, 45.08, 35.88] p =...
asked by 06.09.2018 / 05:26
1
answer

Store space with cin.getline

Do I need support to be able to store several data in cin , separated by a blank space? CODE: cout << "\n\tEscriba Curp de cada integrante de la familia separado por un espacio " << i + 1 << ":"; cin.getline(*curp,...
asked by 01.09.2018 / 06:07
0
answers

Add values to an Android Bar chart manually

I am working on a graph in Android, the graph is already shown if I add the values from the code, the problem is that I have an EditText and a button, in that EditText I want to place a value and when I press the button this Value is added to th...
asked by 27.08.2018 / 22:59
1
answer

Attribute that varies with iterations

I have this piece of code: private List<String> cachedRouteMarkers = new ArrayList<>(); private List<Route> cachedRoutes = new ArrayList<Route>(); public List<Route> getRoutes(DataBaseHelper db) {//Saca la lista...
asked by 28.08.2018 / 21:37
1
answer

How can I load or fill data from a String [], from the server?

I'm doing a ListView Expandable , but when I try to upload the data from the server it does not work just with static data. Any suggestions? There is the MainActivity class String[] parent; @Override protected void onCreate(Bund...
asked by 28.08.2018 / 21:28
1
answer

Convert an ASCII Array to String Swift 4

I'm doing an app in swift 4 of encrypted and decrypted, the question starts here. when DESENCRIPT returns an Array with the values in ASCII Array    [109, 105, 32, 109, 101, 110, 115, 97, 106, 101, 32, 111, 99, 117, 108, 116, 111] // Encryp...
asked by 21.08.2018 / 21:24
1
answer

Tour Array in Laravel

I'm going through the following array: $register = array_values($array); foreach($register as $key => $value) { $var = explode('"', $value[0]); $transfer = new Transfers; $transfer->date = Carbon::CreateFromF...
asked by 21.08.2018 / 13:22