All Questions

2
answers

How to find out the elapsed time?

Hi I wanted to take out the years, months, weeks, days and hours, seconds that have passed since a date. I have achieved what is shown below, but I can not get the exact account, nor can I subtract the time from years, months, weeks, days, etc ....
asked on 20.03.2018 / 19:01
2
answers

Reverse list recursively in C ++

I am trying to revert a list recursively. The problem is when the recursive function arrives at the base case. This should return a pointer to the last element in the list. If I print the pointer before the return (inside the function) the value...
asked on 02.02.2017 / 01:22
1
answer

What is the most efficient matrix or vector in C?

I would like to know which of the two is more efficient in terms of execution time (it does not matter if it consumes more resources than others). This comparison is based on the following: Acceder de forma matriz[fila][columna]; Acceder de f...
asked on 12.01.2017 / 06:24
2
answers

Calculate age using EditText and not using Calendar

How can I calculate the age (including day and month) using an EditText? Right now I do it using a Calendar, but I would like to write the date 23/01/2017 (Example) in the EditText to calculate the age. EditText that I want to use to calculat...
asked on 23.01.2017 / 16:38
1
answer

Copy and destructor builders in C ++ 98

This is a small wrapper for a system of binnacles; the used library is in C, so I have simply added an interface to std::stream : #include <sstream> #include <iostream> class ILogger; class Stream { friend class ::ILogg...
asked on 03.03.2018 / 23:02
1
answer

How to create the relationship of two tables in laravel lumen?

I have two tables attached so that In my project Laravel what would be the relationship that I would have to put in the model <?php namespace App; use Illuminate\Database\Eloquent\Model; class Archivo extends Model { prote...
asked on 24.02.2018 / 17:25
4
answers

Bring data from a table whose date is less than the smallest in another table

I want to do an SQL query to see certain 'inconsistencies' in a SQLServer database. To simplify it a bit, let's say that I have a table Movimiento_Paciente that contains a field pacienteId and another fechaInicio . In this...
asked on 25.10.2018 / 15:15
2
answers

How can I take a break when writing a file on Android?

I have been having problems with writing files on Android, I need to fill out a form and then store it in a PDF or txt file, for the moment I am trying it in txt but I can not write more than one line in it, due to that when trying to write on i...
asked on 05.01.2017 / 20:31
1
answer

Javascript promises, ajax requests ()

Greetings, I have been struggling for a long time with a problem that I can not solve, I hope you can help me, I have reviewed many callback tutorials and promises but I can not solve my problem. Basically I need to make a request $ .ajax...
asked on 05.01.2017 / 07:23
2
answers

How to hide an html element without losing its space on the screen?

What I want to achieve is to keep some labels hidden either through its clase or its ID , what I'm trying to achieve is a accordion dynamically in horizontal format. If I click on any accordion this should hi...
asked on 26.01.2017 / 22:02