Questions tagged as 'array'

1
answer

Save data from an array to a database

I need to write the contents of an array that returned from a Json deserialization (return from a Json with more than one level), follow the line with the method that extracts the array: Departmants dept = new Departmants(); de...
asked by 21.12.2017 / 19:55
3
answers

Join objects inside collection of different objects

How do I "merge" or concatenate an object into a collection of different objects? I've tried redoing but it always gives the same error. public class Prova { private String titulo; private int numQuestoes; private String discipli...
asked by 09.12.2017 / 15:30
1
answer

How do I pass a vector of struct per reference parameter?

(1) In the check_read function it is not printing the correct values I'm reading in the read_dates function, it's printing a bunch of random numbers and symbols. (2) If I solve the problem, how can I print all the surveys I've done? #includ...
asked by 25.11.2017 / 18:12
0
answers

Store the string length of an array

Good morning everyone, I'm trying to get the length of a string from an array store in a variable so I can then use an "if". I use var_dump () where I can know the size of the string but I do not know how to compare that value, that data will be...
asked by 13.12.2017 / 12:05
0
answers

Matrix and vector comparison C / C ++ [closed]

I need to compare an op vector entered by the user with the first 10 columns of each row of a 12x12 array. for(k=0; k<10; k++){ for(i=0; i<12; i++){ for(j=0; j<10; j++){ if(op[k]==d[i][j]){ if(i==1)...
asked by 13.12.2017 / 06:44
0
answers

Adding a Document to an Array in MongoDB

This week, I started messing with MongoDB (I've never had much contact with any DB before) and a question has just come up that I can not solve (I researched, believe). Let's go to the following context: @Listener(targets = ExceptionUnc...
asked by 25.11.2017 / 01:44
0
answers

Return list in an array - WebApi C # [closed]

Good people. I need to return a list of courses linked to a certain student, this list will be consumed through the get of a WebApi. I have the classes "student", "course" and "courseAluno" (tables in the base - EntityFramework). The stude...
asked by 08.12.2017 / 16:27
1
answer

The code is right, but could anyone tell me how True and False works in detail in this question (step-by-step)?

"Make a program that, when you populate a list with 8 integers, store it in a growing fashion. Display the resulting list each time a value is stored" lista = [] for x in range(8): n = int(input("Digite um número inteiro: ")) inseriu...
asked by 10.11.2017 / 01:15
0
answers

Global vector with variable length - programming in C [closed]

I'm trying to create a global vector whose size is defined inside a function. My code looks like this: struct body{ double m; double a; double n; double e; double w; double I; double W; }; struct body *planet_globa...
asked by 10.11.2017 / 15:32
1
answer

Adding arrays (vectors) with methods

I have an exercise to do: create a method where the user enters the values of 2 vectors, then create a method to sum the values of the 2 vectors and finally a third method that shows the new vector created. Here is the code you have created s...
asked by 08.11.2017 / 11:36