Questions tagged as 'array'

2
answers

Objects in javascript

I'm having some issues with Objects by using them in node js, I need an Object like this: var clients = {}; var user = { [client.id] : { 'nome': 'osvaldo', 'sala': 'B1' } }; clien...
asked by 10.07.2017 / 20:02
1
answer

How to instantiate a vector

I'm doing a program (college work), and I'm having trouble instantiating a vector. Furthermore it is presenting some errors that I can not solve - one of them is in the while loop, at the closing of the main class.    How do I instantiate...
asked by 10.07.2017 / 04:29
1
answer

How can I separate the items of a sharedPreferences into an Array?

I'm having a question, I've made a checkbox on items in a listview that when marked are stored as SharedPreferences. Then I created a button (Favorites) to access the items marked by the checkbox, but the checked items go to Favorites I re-creat...
asked by 02.06.2017 / 21:52
2
answers

Deserialize json string array to string array

Hello, I'm having trouble deserializing a Json, I'm not getting the right data. There is the Main Class that would receive the data list public class PermissaoDossie { [JsonProperty(PropertyName = "data")] public strin...
asked by 08.08.2017 / 17:01
2
answers

How to store and use a vector in Firebase on Android?

I'm having a development problem with my app that I can not resolve and can not find something to help me. Such an app was running smoothly with data stored in variables, but by including Firebase I had some problems storing an array. I made...
asked by 07.08.2017 / 18:58
2
answers

Problem with recursion and pointers

I'm having trouble solving the following question:    Make a recursive function that allows you to sum the even elements of a vector of integers, you must use pointers to traverse the vector My code is not performing the correct calculati...
asked by 16.10.2017 / 16:54
1
answer

How to save array in db?

I have 4 fields and I want to save in a db, however when putting in foreach ($ _post ['name'] the $ name) ... I do not know how to add more .. **DB** id | vt | nome | qtn | id_cat 1 | 23 | qua..| 58 | 4 2 | 36 | não..| 57 | 2 register...
asked by 15.05.2017 / 17:25
3
answers

Insert data into a vector to then print and multiply

   Write an algorithm that reads two 10-position vectors and   multiplication of elements of the same index, placing the result in   a third vector. Show the resulting vector. I wanted to show the values you entered first, and then start the...
asked by 14.03.2017 / 14:12
1
answer

How to return multiple rows with byte array from sql Server

I need to make a query in a table where the data is of type varbinary(max) , so I created the method below: public List<byte[]> preenche_fotos(string nCrm) { consql.bd_string(); SqlConnection sqlconn = new SqlCo...
asked by 11.05.2017 / 02:32
1
answer

Array storage

I have a question about storing information in array, I thought that when inside a loop, an array of size 200, for example char nome[200] it would be filled continuously until no more space is left to save the information, causing the sys...
asked by 08.03.2017 / 02:17