Questions tagged as 'matriz'

1
answer

TilePane: how to create individual event on the buttons

I have a hard time using TilePane, I can not create an event for each button in the array. Follow the code for you to help me. 'TilePane tilePane = new TilePane(); tilePane.setPrefColumns(3); //preferred columns tilePane.setAlignmen...
asked by 30.04.2015 / 13:30
1
answer

Represent vector coordinates of Matlab

I'm having problems creating a vector of objects in Matlab, the idea being that it is a vector of coordinates, i.e. the positions x and y. The goal is to have a vector to access the coordinates in the loops easily, and have the atomicity of the...
asked by 18.05.2014 / 02:49
2
answers

Copy a square matrix of tam n into another complemetar n-1, omitted line 0 and column 0 of matrix n

#include<stdio.h> #include<stdlib.h> #include<limits.h> #include<locale.h> int main(){ int i,j; int mat[3][3]; int comp[2][2]; for(i=0;i<3;i++){ for(j=0;j<3;j++){ printf...
asked by 06.07.2018 / 05:39
1
answer

How do I print the location (row and column) of the largest value inside an array?

Good morning, I'm not able to complete my code, I've already used the For i in range and the for j in range, but I can not complete the code because I need to store the result in another variable and then see if the results are greater than the...
asked by 16.06.2016 / 14:25
1
answer

Game resolution Sudoku giving infinite loop in C

I have the following code in C : #include <iostream> #include <stdio.h> #include <stdlib.h> #include <time.h> // Variáveis globais int jogo_tabuleiro[9][9] = {0}; int func_quadrante(int quadrante, int numero) {...
asked by 20.06.2016 / 00:00
1
answer

How to sum the values of each row in an array?

How to sum the values of each row of an array and store the sum in an array ? Example: 3 3 3 2 3 4 2 2 2 Results in: 9 9 6     
asked by 20.04.2015 / 21:02
2
answers

Display array in python

I have an array of n by n and use this part of code to display it: for i in range(len(data)): for j in range(len(data[0])): print ((data[i][j])) Being data the matrix. But the output looks like this: 5 4 1 10 2 3...
asked by 22.11.2018 / 19:53
1
answer

Problem with parameter passing / return of function arrays in C

I'm having a problem with a job I have to do in C which consists of, get the inverse array through the attached array. So far this is what I could produce in C # and then I tried to rewrite it in C, but I'm not getting success because I do no...
asked by 06.06.2018 / 03:37
1
answer

Add values in a 3-dimensional array

How do I make the user add values to an array [] [] []? calendarioEventos = new Evento[dia][mes][hora]; for(int i = 0; i < calendarioEventos.length; i++) { for(int j = 0; j < calendarioEventos[i].length; j++) { fo...
asked by 29.11.2017 / 13:16
1
answer

How to check if vector fields are null?

I am building a program, which should check initially if the array of type (Class) is null. My class has the get and set method, as well as the with and without default constructors. However, when the program initializes, the values of each cell...
asked by 14.06.2018 / 23:16