Posts by thiago dias • 81 points
4 posts
-
0
votes3
answers3540
viewsA: How to receive an array and return another
Follow the answer. Receives the outgoing array variable and returns an outgoing array (not played inside a variable, but it is quite simple). function inverterArray(arrayEntrada) { var…
-
0
votes3
answers51
viewsA: Add class and link to a LI tag
If it is possible to manipulate your html and add a click event on it (and considering that you cannot use Jquery), it would look like this: <li><a class="flex-next" href="#"…
-
1
votes1
answer32
viewsA: Serial ID not assigning to model id
Your model->save() has to come before $model->uploadImage Why the $id does not exist until that model is saved in the database. Your code rearranged to work: $model->ofe_emp_id =…
-
4
votes2
answers1083
viewsA: How is the logic to print the numbers in ascending order in C
It would take another function to sort the values. I’ll leave a simple example: for (int indice = 0; indice < quantPar; indice++) //Loop para percorrer o vetor { for (int indice2 = 0; indice2…