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[...
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...
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] ... [...] ..... [...]]
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...
"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...
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];...
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...
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...
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...