Questions tagged as 'matriz'

1
answer

How to check elements close to a specific element in an array?

The goal is to try to find on the college campus possible locations for building a new building. The user will type the matrix that represents the college plan. R = Ruas P = Prédios V = Área Verde E = Estacionamento R R R R R R R R R R R R...
asked by 10.06.2015 / 18:28
1
answer

Java: FileReader reading number that is not in the file

I have this TXT: 1,2,4,8,7 45,18,27,35,44 17,45,2,8,6 And I want to read this array to a Java array. Here is the code: public static void main(String[] args){ double[][] pesos = null; String valorFinal = "";...
asked by 23.05.2015 / 04:03
1
answer

Interleaved Matrix

Hello, I'm doing this exercise, but I'm having a hard time. The following is the statement:    22) Write a program to generate an array (N x M) (
asked by 26.11.2014 / 00:28
0
answers

Overlapping values in array

Hello I have an array that is formed by a set of random numbers. Yet some of these sets of numbers overlap. What can I do to prevent this from happening? void ransnipa(int (*board)[40]){ srand(time(NULL)); int k; int x[snipa];...
asked by 21.12.2018 / 18:50
0
answers

HTTP Error 403.14 - Forbidden The Web server is configured not to list the contents of this directory

Could anyone help me solve this problem? I installed webmatrix3, but when running the program with the code:                       First example                    Testing PHP google opens the local host: link as the error 403.14, I...
asked by 22.11.2018 / 04:34
0
answers

Saving the data in an array skips the next question

I have the following code: #include <stdio.h> #include <stdlib.h> #include <locale.h> struct cadastro_palestra { char nome[50]; char cpf[13]; char email[70]; }; int main () { setlocale(LC_ALL, "Portuguese");...
asked by 08.11.2018 / 11:39
1
answer

Invert row with column in an array?

   Make a program that randomly generates 20 integers in the range of 0 through 999 and fills in an array of 5 x 4 size. Show the matrix, then show the transposed matrix (reverse row with column). I've already been able to populate the array...
asked by 03.11.2018 / 01:26
1
answer

Save excel file to an array

In the example below I have a class in java that will fetch data from a certain excel file. All this part of fetching the file the program does, but now needed that this data be stored in an array. I do not know how to do it. public class UniF...
asked by 26.10.2018 / 21:15
0
answers

Google Distance Matrix

I need to use Google's Distance Matrix and read the API plan and wanted to know if I understood correctly. Google gives you "200 USD" / Month so you can make 40k requests per month, charging the surplus. Is that right? Are these "200 US...
asked by 13.10.2018 / 03:03
0
answers

Segmentation fault (core dumped) in array data scanf

This next piece of error code, does not read the user data to allocate in the 5x2 array, I can not find the problem int linha=0, coluna=0; int matriz[5][2]; for(linha=0;linha < 5; linha++){ for(coluna=0;coluna < 2; col...
asked by 08.09.2018 / 02:43