All Questions

4
answers

C #: How to identify the first digit of each number in a vector to count how many numbers start the same?

Good day. I have this problem, I guess it's simple but I have not been able to solve it and I have one day in that, I have a program that accepts 10 numbers and enters them in a vector, but I need to know how many of these 10 start with th...
asked on 20.03.2018 / 01:00
1
answer

How do I stop an interval in js?

Hello, my problem arises when I stop an interval in javascript, because even if I use the ClearInterval it continues printing. var canvas = document.getElementById('canvas'); var btnInicia = document.getElementById("inicia"); var btnPara = do...
asked on 29.03.2018 / 05:46
1
answer

Problem when creating JSONObject in android studio

I am creating a login in Android Studio guiding me from a tutorial but I have been stuck, when creating a JSONObject there is something that fails and I do not know what it is. I have managed to create a String with the valu...
asked on 18.02.2018 / 00:36
3
answers

Remove relationships in select LINQ

My question is the next one, when executing this sentence in LINQ, it brings me the user that I require, but also all the table relations where it has been referenced by a foreign key in the DB, that is, if this user made 1000 sales are going to...
asked on 19.03.2018 / 15:19
1
answer

how can I create a bat to make an infinite ping

Hi, I'm trying to do a simple thing, so I need to ping my router infinitely because I often lose the connection with my router and that way it goes a little better. I do not know much about bat but what I need is to put this command in a bat:...
asked on 16.03.2018 / 19:23
2
answers

Copy a word obtaining dynamic memory

I am trying to request that a word be entered and then create a new memory space to copy the word entered by the user there but I do not know how to do it. I have this: #include <string.h> // strlen, strcpy, strcmp, strcat #include &l...
asked on 27.03.2018 / 04:10
1
answer

Sort a List of Objects in Java

I have a list of my own Java objects, which need to be sorted by the property code of the object itself. List<Calle> listaDeCalles; Calle calle1 = new Calle(); calle1.setCodigo("A4"); ... listaDeCalles.add(calle1); l...
asked on 14.10.2016 / 13:24
2
answers

What does the use of (+) mean in an Oracle query? [duplicate]

I would like to know the use of the operator (+) in the following query and what is its possible equivalence in MySQL. SELECT 'E' tipo_envase, DECODE(NVL(pasi_parametro1,'-'),'-','CRE','CON') tipo_pago, vaca_serie, vaca_numero, vaca_l...
asked on 04.10.2016 / 00:05
3
answers

Problem with struct in C ++

What type of error or omission am I committing in the code? Specifically in the statement% main% co_. Error which I have solved comparing the results one by one, which would be problematic when you have to compare more than 3 variables. #in...
asked on 23.06.2016 / 01:25
2
answers

Problems with the following MySQL query

I have a table in MySql with the following data, where id_pers is a foreign key to another table people. -------------------------------------------- id | id_pers | created_at | -----------------------------------------...
asked on 12.09.2016 / 18:59