Questions tagged as 'matriz'

2
answers

Compare char in an array function

I'm making a game of old and I need to compare the positions if they are the same to verify the winner, but it is not working. Here is the code: #include <stdio.h> #include <string.h> void exibir(); int checaLocal(char matriz[...
asked by 20.10.2016 / 17:24
1
answer

Product of nasm matrices

I have to make an algorithm that multiplies an array A by an array B and places the result in a third array. The arrays are square, of the same size and will be passed by reference by another C program. The problem is that the errors only app...
asked by 06.06.2016 / 21:53
2
answers

Create 3x3 matrix using Imageviews - SWIFT

How do I programmatically create a 3x3 array composed of 9 ImageViews?     
asked by 19.11.2015 / 20:49
1
answer

Define an analytic function in python

I need to do some operations with arrays (of very large size), but the elements of it are analytical functions. Is there a way to do this in Python? Ex: Matrix = [[x ** 2 + 3x, x + y + 1] ... [...] ..... [...]]     
asked by 31.10.2015 / 06:26
2
answers

Product of Matrices

I am trying to create a method that returns the product of two arrays passed as parameter. The method is only working for square matrices and not for two 2x3 and 3x2 matrices, for example. If anyone can help and tell you where the error is, I th...
asked by 26.05.2015 / 01:53
1
answer

How to create a vector that displays the frequency of each element in an array?

"Write a Freq. method that receives data from an array A that has integers between 0 and 0, generates a vector with the occurrences of each integer between 0 and x. that takes a vector of integers and returns the largest element of the vector...
asked by 07.12.2014 / 19:16
2
answers

I'm trying to print an array using for in javascript, but it does not display correctly

Print manually and then tried to use for to print, but it turned out I could not see it properly. let mochila = new Array(); let item1 = ['corda', 2], item2 = ['faca', 3], item3 = ['cura', 23], item4 = ['prego', 35];...
asked by 07.11.2018 / 13:30
2
answers

Creating a dynamic array that stores text with breaks

Attempt to create a dynamic array using malloc() . I am in doubt if the parameters I submit for the different function cycles will be right. int size=0,i,j,n=20; char str[]="Ola. Tudo bem?\n Sim e contigo?\n Comigo esta tudo bem! Que ten...
asked by 10.11.2017 / 09:33
2
answers

Why is not the break working? [duplicate]

Statement:    Read a 5x5 matrix. Also read an X value. The program should do   a search of this value in the matrix and, at the end, write the location   (row and column) or "not found" message Code: #include <stdbool.h> #includ...
asked by 19.07.2018 / 07:26
1
answer

Error type mismatch: Can not convert from String to String [] - How can I fix it?

When trying to receive value through JOptionPane in an array, but gives this error: type mismatch: cannot convert from String to String[] How can I fix it? Here is my source code below: package br.deivsoft.estudo.modelo; import...
asked by 12.01.2018 / 03:56