I wonder if in C / C ++ it is better to declare a new array every loop loop:
while(true) {
char array[255] = "";
// Hacer algo con el array ...
}
Or empty it every turn of it:
char array[255] = "";
while(true) {
for(short i = 0; i...
I have the following query :
SELECT S.IdCliente
,S.NOMBRE
,S.JLI_SDESLINEA
,S.JCA_SDESCATEGORIA
,SUM(S.MONTO) AS MONTO
,COUNT(*) AS QTY
,S.DIA
,T.IDTERRITORIO
,T.VENDEDOR
,T.SUPERVISOR
,V.IDCLIENTE
FROM...
I have the following query
SELECT * FROM TABLA_A
WHERE
CAMPO_1 IN (
SELECT CAMPO_X FROM TABLA_B
)
OR
CAMPO_2 IN (
SELECT CAMPO_X FROM TABLA_B
)
The query works, I hope you can optimize the call of in since they are equal. I have...
I have 2 foreach nested of a class articles, in which I go through two lists, and if the item in list 1 is in list 2, it must do a couple of operations, the dilemma is that when dealing with very long lists, it takes a long time and I nee...
I have a table A :
-----------------------------
| id | nombre | cel |
-----------------------------
|1 | Juan | 1653727|
|2 | Pedro | 6353526|
|3 | Hernan | 4465672|
-----------------------------
Another ta...
I have developed a JEE application with primefaces 6 Spring in Wildfly 10.
The application works well with few users, but from 10 users the system starts to give very high response times of more than 10 seconds. With 25 User gives times of 30...
I'm having performance problems with the painting in Qt and the QGraphicsItems in Linux. It gets very "locked" when I add things to the painted (grillas and others). I put a qDebug in the paint to see which area is drawing:
void...
My case is that I am developing a web of musical artists and had the idea of showing a page with several div whose backgrounds are photos of the different artists and when the mouse passes have the animation of a box-shadow showing the name of t...
I have the following query to obtain an average of some data of the 52 weeks of the year in the following way:
$dates = array();
$firstDate = date("Y-m-d", strtotime('first day of January 2016'));
$lastDate = date("Y-m-d", strtotime('last day...