All Questions

2
answers

Change foreach by for

I need to change the following foreach() to for() . The problem is that instead of arrays the loop runs through a dictionary. This is the code I want to transform a for() : foreach (var joint in body.Joints.Values) //transf...
asked on 16.06.2015 / 17:20
1
answer

Pass Array as parameter to function

Make a program in C that reads an x value, dynamically create a vector of x elements and pass that vector to a function that will read the elements of that vector. Then, in the main program, the filled vector must be printed. In addition, before...
asked on 04.05.2016 / 16:36
1
answer

What is the difference between Classes and Interfaces?

What is the difference between classes and interfaces ? I've read that apparently the difference in interfaces is because they are 100% public, but I have no idea. Could anyone explain the difference between them?     
asked on 28.02.2016 / 20:57
1
answer

Why do some libraries start with "0.6" or "0.2" instead of using "1.2" or "1.6"?

Well, here at StackOverlow I could learn about Versioning. When incrementing the version using Semantic Versioning? Versioning scheme I've been able to fully understand the versioning scheme, and how each of the "dots" that sepa...
asked on 22.04.2016 / 22:07
1
answer

Icon color - Android Toolbar

How do I leave the color of the icon in API's smaller than 21, also white? At 21 it works ok, but below as for example 16, it turns black. I did it this way: Toolbar <android.support.v7.widget.Toolbar android:id="@+id/t...
asked on 22.03.2016 / 17:45
2
answers

How to change the value of subsequent inputs?

In a form there are N occurrences of values for the same product, to facilitate I'm wanting to apply the same value for the subsequent inputs. For example, using the structure below: <input class="valor partida" type="text" name="novo_va...
asked on 18.05.2016 / 21:50
2
answers

clear input with javascript onchange event

I have 2 input: <input name='nome1'> <input name='nome2'> I need to create a javascript that clears the name2 when the value of the name1 is modified. Can anyone help me do this quite simply?     
asked on 20.04.2016 / 22:07
2
answers

optimized form retrieve last mysql ID

What better way to retrieve the last id from the table? I tested these two methods and the orde by took longer, is there any more of these? Note: this will not be a query after insert. It will be a separate query. select max(campo_id) fr...
asked on 09.05.2016 / 02:22
1
answer

What is the prefix attribute for the html element?

Why is the prefix attribute used in html elements? And in HTML5, can I also use it? Thank you! <html prefix="og: http://ogp.me/ns#">     
asked on 23.03.2016 / 01:36
3
answers

Reset "select" when unchecking checkbox

Hello, I'm trying to use the Jquery checkbox, And the second question is whether there is a better (simpler) way to get the same result. I thought that I had succeeded, through a previous question but an error appeared. Thanks in advanc...
asked on 21.03.2016 / 19:49