Questions tagged as 'array'

0
answers

how to create multiple processes in C and pipes pipe ()

hello will see I have my code that counts the amount of files in a directory and then returns the name of that file next to your md5sum, what happens is that my task says the following: The application should examine the contents of the "/...
asked by 19.12.2018 / 15:26
1
answer

Python: Index Out Of Range when traversing a vector

I work in a function that should look for the element with the highest value in a vector, but I get an error when compiling, the code is the following: def getVPPXSenialXMovXFilaMaximosMinimos(self, mov_canal, fila): line = [self.file.getV...
asked by 01.12.2018 / 03:02
2
answers

Transposition of Columns into a Matrix in c ++

Hello, I have a char array initialized as follows: #include <iostream> using namespace std; main(){ char matriz[6][5]={ {'F','H','V','D','U'}, {'E','L','Q','U','E'}, {'P','E','R','S','E'}, {'V','E','R','A','A'}, {'L','C','A','N','...
asked by 28.03.2016 / 21:24
1
answer

Use of array in session variable

Good afternoon, classmates. I would like to save in a session variable the value of two fields that I pass through $ _post from a form and that this session variable will store the data of those fields until I destroy it with the intention of...
asked by 13.12.2018 / 17:09
1
answer

How to get the last item in a list? in java

I have a list that I use as a line counter. pressing [ENTER] the list increases by 1 value and I just need to make pressing [BACKSPACE] or delete the last item in the list. and I do not know how to get the last object you know how to do it? This...
asked by 23.11.2018 / 01:38
1
answer

Verify if there are whole numbers in a chain?

I have made this code: public static void main (String []args){ Lexico lex = new Lexico(); String cadena = JOptionPane.showInputDialog("Ingrese la cadena: "); System.out.println(lex.ingresarCadena(cadena)); } String[] Ec...
asked by 24.10.2018 / 16:51
0
answers

Search for duplicate data multidimensional array

I have an array in the following way: Array ( [0] => Array ( [IP] => 172.30.224.232 [Equipo] => Space-saving [CodPat] => 111 ) [1] => Array ( [IP] => 172.26...
asked by 16.10.2018 / 16:01
2
answers

Browse array and replace

I have this exercise, but I could not advance almost. Return a new string with the initial letter in upper case and the rest of the letters replace with points. If the string is "", return a string with a period. Example: String1("")...
asked by 17.10.2018 / 23:44
0
answers

Android sqlite INNER JOIN that returns an array

I'm using sqlite for android and I want a function that returns an array with all the objects that meet a condition. Let me explain: I have two tables: Movies private static final String CREATE_PELICULAS_TABLE = "CREATE TABLE " + PE...
asked by 27.09.2018 / 17:23
1
answer

Android Studio error: java.lang.ArrayIndexOutOfBoundsException: length = 1; index = 1

I am having a problem that has been going on for hours and I can not solve it. The error that gives me when compiling the program is the title. This is my class: public class ElegirCuidados extends AppCompatActivity { private String elegir...
asked by 14.11.2018 / 16:39