Questions tagged as 'matriz'

3
answers

How to print without line break in Python

matriz = [] def create_matriz(a, b): for contador in range(a): matriz.append( [0] * b ) def print_matriz(txt): cont = 0 for j in range(a): for i in range(b): if txt[cont] == "0": matriz[i][...
asked by 06.06.2017 / 06:15
2
answers

Extensive array causes the program to stop working

I have the following problem, when I define an array that is too large, for example: int matriz[2000][2000] , compile and command to run, the program stops working. I just tested it in Windows and it appears that classic message ".exe has...
asked by 10.10.2015 / 15:11
1
answer

Changing array of integers for image filter

I'm doing a program that applies filters to images .ppm , images without any encoding, the problem is that when I apply the filters, the original image is not changing, where is my error? The same thing is happening for the other filters...
asked by 11.11.2014 / 14:02
1
answer

Error reading and comparing numbers in an array

The program must read a number and compare with the numbers of a 3x3 matrix any if the number belongs to a column of the matrix it should print the position, when I type 1 it prints two positions, but the 1 is only in one position . #include &l...
asked by 16.02.2016 / 21:27
1
answer

I can not fill an array

When I put fixed values in the array size I can fill it up, but when I try to capture the values in arrays a message like this appears:    The index was outside the bounds of the array ' int a = 0, b = 0; double[ , ] test = n...
asked by 13.10.2018 / 16:43
1
answer

What does "order an array" mean, either by rows or columns?

What does "order an array" mean, either by rows or columns?     
asked by 04.07.2018 / 05:47
1
answer

Problem in assembling an array in C

I'm having a problem with an array that I set to get typed letters and these are transformed into ascii table numbers, but it does not print Where am I going wrong? Can anyone help me? #include <stdio.h> #include <stdlib.h> int mai...
asked by 27.10.2017 / 22:32
2
answers

How to sort an Array Array alphabetically in PHP?

I have an array nxm that I will call $tabela . This array has some data inside it organized as follows: | Papel1 | Hora1 | Valor1 | Erro | B | | Papel2 | Hora2 | Valor2 | OK_Ok | A | | Papel3 | Hora3 | Valor3 | Falha | C | | Papel4...
asked by 05.03.2018 / 18:15
1
answer

Square Matrix in Python 3

My code is printing spaces at the beginning and end of the line, and it is giving presentation error (question 1557 URI) Does anyone have a good tip? "The values of the arrays must be formatted in a field of T size justified to the right and sep...
asked by 11.11.2017 / 14:28
2
answers

How to change position of all matrix elements by changing the row number by column?

I tried this algorithm but the result stays the same after this exchange int[,] array = new int[10,10]; for (int l = 0; l < 10; l++) for (int c = 0; c < 10; c++) { int temp = array[l, c]; array...
asked by 14.07.2017 / 16:09