All Questions

3
answers

Is the std :: map structure in C ++ a tree?

I know that every element of the structure is represented by a key and a given, but I do not see it as a tree, and I read somewhere that it is a tree.     
asked on 15.09.2016 / 22:31
1
answer

mysql Delete all records in a table except the first one

Can someone tell me where I'm going wrong? or is it possible to do this? I wrote the query like this: DELETE FROM reservas WHERE ID NOT IN (SELECT ID,IDORIGEM FROM reservas WHERE ID='387' and IDORIGEM='387'); The id field keeps always th...
asked on 30.06.2016 / 21:52
2
answers

Adding inputs in jquery, but not deleting the ones that already exist

I am currently having the following code in jquery to add inputs according to the number in a text box, However if the form already exists for some field when clicking to add another one is deleted all fields and their content and inserted ne...
asked on 09.12.2015 / 13:23
2
answers

Paste string between bars

I need to get the string that is inside the last two bars (heDA6Yu7hsc) with javascript. How to proceed? https://i.ytimg.com/vi/heDA6Yu7hsc/img.jpg     
asked on 26.09.2016 / 18:34
1
answer

two functions within the onchange

Colleagues. I'm trying to put two functions inside the onchange, but the functions only work when I take one or the other. onchange="soma(); alterar();" How could I solve this? Thank you!     
asked on 23.09.2015 / 17:32
2
answers

How to transform the first array of a multidimensional array into a key?

How can I transform the first array of a multidimensional array into a key? for example this would be my multidimensional array array (size=5) 0 => string 'Nome' (length=4) 1 => string 'd_r_A' (length=5) 2 => string 'numero' (le...
asked on 18.08.2016 / 21:30
4
answers

Read XML documentation generated by Visual Studio

How can I read the XML documentation generated by Visual Studio in any way that is formatted?     
asked on 06.08.2015 / 19:43
1
answer

Validate credit card with js

I would like to know how to validate the credit card through Js. Visa starts with 4 Mastercard starts with 51, 52, 53, 54 or 55; American Express starts with 34 and 37 Does anyone know how to validate this? <fieldset class="fsRe...
asked on 25.10.2015 / 17:28
2
answers

How to fill in the leading zeros in Python?

In php, I know we can fill a number with zeros through printf Example: printf('%04s', 4); // Imprime: "0004" How could I do this in Python ? When I try to do this in the above way, the result is not as expected: print '...
asked on 13.08.2015 / 21:39
4
answers

Highlighted if illegible on page

My page (Header of a table and a modal popup), in accented letters or characters of the Portuguese language, are coming illegibly. In the head of the page I have this statement: <head> <title><%=Application("app")%></title...
asked on 24.08.2015 / 20:56