Questions tagged as 'lista'

2
answers

How to manipulate properties of instances of a class that is in a ListT?

I have a class called Pessoa , this class has two properties Nome and Idade , I'm using List<T> to manipulate data, I know I can manipulate data of type string or int creating a List<string>...
asked by 21.11.2015 / 03:31
1
answer

How do I add an element to a list?

What is the correct syntax for calling the Add_Pessoa method of the ClsPessoa class for a List? public class ClsPessoa { private static string PSTR_Nome = ""; private static DateTime PDT_DataNascimento; private static...
asked by 11.10.2015 / 22:29
2
answers

Remove element from a linked list

I am implementing a chained list of type "with head". It follows struct referring to the list and creating it in main () struct lista{ int info; struct lista *prox; }; typedef struct lista Lista; int main () { Lista *l, *aux;...
asked by 21.09.2015 / 14:32
2
answers

Receive 2 parameters when entering a key parameter

I have a code that is related to 2 values, for example: 1253 (code), São Paulo (first value, in the case the state), and Osasco (second value, in this case, the city). I would like to know if there is any way in a list, or some kind of spe...
asked by 26.11.2016 / 20:14
1
answer

Serialization of lists in C # classes

Good afternoon guys, I'm doing an NFe project to issue, so I opted, after researching using class serialization to mount the xml. Everything works fine, from a class structure that I set xml amount, but in a certain part I needed to implement li...
asked by 28.05.2015 / 20:10
1
answer

What is a "definition list" and how are these DL, DT and DD tags used?

As far as I knew in HTML there were only two types of lists. Ordered lists <ol><li> and Unordered list <ul><li> . But apparently there is a third type of list, which is Definition List (definition list...
asked by 08.10.2018 / 19:26
2
answers

How to clone a list with Python 3?

From list m : m = [[' # ', ' # ', ' # ', ' # ', ' # ', ' # '], [' # ', ' # ', ' # ', ' # ', ' # ', ' # '], [' # ', ' # ', ' # ', ' # ', ' # ', ' # '], [' # ', ' # ', ' # ', ' # ', ' # ', ' # '], [' # ', ' # ', ' # ', ' # ', ' # ', ' #...
asked by 28.08.2018 / 19:54
1
answer

Concatenation of haskell lists by eliminating repetitions

Hello, I've been trying to make a haskell function that gives two lists a few times and returns a new list Where this new list is the union of the other two lists but without repetitions, ie a [1,2,3] [3,2,1] list should return [ 1,2,3] o...
asked by 09.05.2018 / 10:33
1
answer

Reload DataGridView in C #

I'm creating an event from a button in which it creates a Product object and adds it to a list of Products and using this list to populate the DataSource of a dataGridView, but the DataGridView always keeps appearing a single product. private v...
asked by 09.01.2017 / 18:43
1
answer

How not to repeat values in a list in Python?

If I create two lists, and then I add the two, I create a third one that has all the items of the previous two: >>>a = [1, 2, 3] >>>b = [3, 4, 5] >>>c = a + b >>>print c [1, 2, 3, 3, 4, 5] How can I preve...
asked by 19.03.2016 / 03:03