Posts by Groot • 51 points
4 posts
-
0
votes4
answers940
viewsA: Java: How do I store a vector in another vector and using Math library
You can do a for that traverses your array and stores n² in the new array like this: for (int i = 0; i<arrayValores.length, i++){ int arrayQuadrado[i] = pow(arrayValores[i],2); }…
-
0
votes4
answers224
viewsA: My program made in C++ is in infinite loop, how to fix?
Your operator has the wrong signals, change the line: for(i=0;i>=10;++i) { To: for(i=0;i<10;++i) {
-
1
votes2
answers120
viewsA: What is the difference between using variable and passing direct parameter?
It’s basically the same thing: int numero = 1; printf("%d",numero); and printf("1"); The difference is that in the first you had to declare the variable (and store memory for an integer, 4 bytes)…
-
3
votes2
answers577
viewsQ: Find html element in css
I need to find a specific element of what is in my html code only in css, exemplifying: It’s like: meuElemento [type=input]{ color: #FFFFFF; } Only the doubt is on how I find an element like…