All Questions

2
answers

Why declare pointer to array if arrays are already pointers?

If a char array is already a pointer, why declare a pointer to the array? And what's the difference between char exemplo[10] and char *exemplo[10] ?     
asked on 08.10.2015 / 03:19
3
answers

Netbeans: warning message

I have a warning message that tells me that the method is 23 lines and in parentheses says (20 allowed) I do not understand why this message, / p> What does this mean? How do I disable this warning?     
asked on 04.09.2015 / 15:51
2
answers

What is the correct way to return a switch value?

How is the correct way to return the value of switch ? HTML: <h3 id="txtOcorrenciaStatus">Status</h3> Javascript: switch(ocoStatus) { case C: $("#OcorrenciaStatus").html("Concluído"); break; case A:...
asked on 27.12.2015 / 21:30
2
answers

How to put two divs next to a container?

How do I put two divs, one on the left side and one on the right side of a container with the bootstrap? Being that you would like the side divs to increase in size according to the screen.     
asked on 11.09.2015 / 23:20
4
answers

Stop and restart function setInterval

I have a function in javascript that starts a timer. I want to be able to stop, and reset. jsfiddle example: link var countms = 0; function start() { var counterms = setInterval(function () { countms = countms + 1; va...
asked on 12.08.2015 / 12:42
3
answers

Is there a way to do a + or - operation in a MySQL query?

Example: select quantidade from tabela where quantidade é mais ou menos = '5'; Does anyone know of any way to do this in MySQL? I have an approximate value of 5 and would like to bring it from the database in a query, but I do not know any...
asked on 06.05.2016 / 14:47
5
answers

How to reduce the search time in a table with more than 200 thousand records?

I'm having problems with listing and searching table data with more than 200,000 records. I read in searches, that for the search system, the ideal would be to do indexes of the type "fulltext" in the fields where it will be will have a searc...
asked on 31.08.2017 / 08:59
2
answers

JavaScript - Mathematical module of a value

Is there a command (or symbol) that makes the math module a value? For example: var teste = |10|-|6|;     
asked on 21.11.2017 / 18:04
2
answers

How to select all id's except one?

Is there any way to in SQL I get all the data except an ID? For example (I know this does not exist in SQL) Select * From Utilizadores Where id_ut != 1;     
asked on 08.09.2015 / 01:31
2
answers

Problem using Switch Case in Python 3

print ("ESCOLHA A CERVEJA PELO NUMERO") print ("1-ANTARTICA R$6.00;2-SKOL R$6.50;3-BRAHMA R$8.20;4-SOL R$8.25;") cerveja = input ("5-NORTENHA R$16.80;6-PROIBIDA R$4.80;7-DEVASSA R$5.90;8-HEINEKEN R$9.00") q = float(input("Quantas ???")) def cas...
asked on 26.10.2015 / 05:30