Questions tagged as 'array'

1
answer

Function filling only one line

I created a function so that as the user enters a client number, the fancy name of the client is filled in, but since this data comes inside a table and I use array to capture ( fazer insert e update ) in that data, all lines fill in inste...
asked by 01.11.2017 / 18:17
0
answers

Generate random numbers in a floats vector in the C language [closed]

I would like to know how to generate a sequence of random numbers, ranging from 0 to 10, of the float type into a vector of size 10.     
asked by 28.06.2017 / 14:38
1
answer

How to create a vector by joining among others 2

I'm doing an exercise with vectors where I need to read two vectors of 5 positions each, and after that, concatenate these two in a 3 of 10 positions. My program is printing the first vector correctly, but in the second it prints 4, 5, 5, 268...
asked by 20.08.2017 / 20:40
1
answer

how to define the input array for RNA training in the rnn package?

In the rnn package there is an example of how to do network training, which is described in this link (example 1). In the approach of this package the entries are given in the format of a array 3D, where the dim 1: samples; dim 2:...
asked by 08.08.2017 / 07:38
1
answer

Problem to select a specific object within a hash

Hello! Good Morning. I have the following situation: In my Ruby code, there is a flower class (attributes: code (generated by a function with auto increment), name , and category (this attribute also represents the hash key)). Each inst...
asked by 20.03.2017 / 15:02
1
answer

How to insert a file into an array

I'm having a hard time and I could not solve it. I have a configuration file in this file I have an array and several arrays inside it and one of those is my array of routes. What I need to do is to include a file inside that array of routes bec...
asked by 08.09.2016 / 19:23
2
answers

Check for duplicate numbers between two php arrays [duplicate]

Hello, I have two arrays in php and I need to check if there is any number in array 1 that repeats with some number in array 2. I do not need the numbers, I just need to know if it repeats! How to do?     
asked by 10.10.2016 / 13:29
0
answers

Remove accentuation of a string in C language [closed]

I'm having a college work on Threads and competition control (OpenMP) in C, which is giving me a bit of a headache. The work consists of taking text from any file and separating it from% cos_de% producers and consumers, where consumers...
asked by 05.12.2018 / 19:16
1
answer

Doubt about filling a two-dimensional array in Java

I'm doing an exercise and I need help. Here is the statement:    Calculate the average temperatures of each month. To do this, create a list containing the names of each month in the rows, and the number of days of each month in the columns....
asked by 10.07.2016 / 03:09
1
answer

Feed Array PrimeFaces

Good afternoon, folks, I have 2 related table, one of orders and another of items of the order, so I thought to feed an array with the information of the order items and on the same screen put order information and when I click the save order...
asked by 23.12.2015 / 18:35