Questions tagged as 'arreglos'

2
answers

How to traverse an array within another indexed array

I try to save records of indexed buildings in my array since I can register 1 or more buildings in a single form, for each building I want to store name_building, number_calls, and prefix_calls. My code is as follows $edificios = array();...
asked by 27.10.2017 / 22:46
1
answer

help codification zenith polar in c

I made a program in codeblocks which should code in polar zenith and although it identifies the characters and exchanges it generates a problem with the characters that are not exchanged transforming them into completely different characters...
asked by 02.11.2017 / 02:10
1
answer

Sort array defined with sort (); in java

My problem arises when I order my array String nombre[5] (Whenever I consult when I have less than 5 names), because when I want to consult data I get an error: package mainclass; import java.util.Scanner; import java.util.Arrays...
asked by 02.10.2017 / 03:28
1
answer

Pass elements from a Listbox to a two-dimensional array in C #

I want to calculate the average of this matrix but only classes, based on this matrix: 2 4 4 0 0 1 3 5 5 5 1 5 3 2 4 2 6 2 1 3 2 5 3 0 1 The first column indicates the number of the class that belongs to the row, the first row only indicat...
asked by 14.10.2017 / 03:28
1
answer

Print a two-dimensional array in java

My question is how can I print my two-dimensional arrangement in this way My fix is 8*8 and I use this to print: for (int x=0; x < matriz.length; x++) { for (int y=0; y < matriz[x].length; y++) { System.out.p...
asked by 09.10.2017 / 03:10
1
answer

How do I get back to the main menu in this program?

Good day, I'm doing a program where I print a type of sales invoice from a warehouse, I have everything done but I would like to know how to go back to the main menu to do the whole process again without closing and opening the program ... Here...
asked by 10.10.2017 / 05:55
2
answers

"Unreachable statement" error when executing program

When compiling the following program in the cmd I get the error:    unreachable statement public class Ejercicio1{ public static void main(String[] args){ //A) int[] f = {10,2,4,5,4,3,8,9,2,3}; System.out.prin...
asked by 26.09.2017 / 23:30
2
answers

How do I store a string in a char array in c ++?

My problem is that I capture 2 strings and then I want to save them in their arrangements string nombre_buscado; string apellido_buscado; a nombre[5][10] apellido[5][10] and I get the error in: nombre[i]=nombre_buscado; apellido[i]=a...
asked by 27.09.2017 / 03:53
1
answer

Error with fix in abstract class (Client is abstract; can not be instantiated)

I have an abstract class called Client with two subclasses. In the main file (called TestClient) I need to make an array but when I try to start it it gives me the message "Client is abstract; can not be instantiated". // Arreglo de client...
asked by 24.10.2017 / 11:39
1
answer

Help with JAVA survey program

Could you help me please with this code, I do not finish understanding why you give me this error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4 at com.company.Main.main(Main.java:64) Apart from that if you ca...
asked by 05.07.2017 / 22:58