Questions tagged as 'loop'

0
answers

Loop within the submit button

I have the submit button that should submit the grade to a student class. But when I click the button, it only submits the note to the last student in the list. The list of students and the list of grades are stored in the students array and arr...
asked by 13.12.2018 / 18:04
0
answers

Add value in sequence to the end of the value of a php array

I would like to add values in sequence to the end of each value in my array. So that when the loop is executed add values to the end of my array. Example in pseudo code: // Array original $arr = ['1' => '1.','2'=>'2.']; FUNÇÃO QUE ADICIO...
asked by 23.12.2018 / 01:47
0
answers

How do I get the vector with the smallest "me", and copy it to another vector that the case calls "mnr"

Note: I did not start the code because it does not influence! I'm trying to pass the coordinates of the array that has the smallest number of zeros in your column, row, or quadrant (to make a sudoku solver). Thanks so much! int main()...
asked by 04.12.2018 / 02:18
0
answers

Loop while showing only the first record of the database

Hello, my system has a problem, I have 2 tables: alunos id | nome frequencia id | id_aluno But in the while loop where I connect the two tables by id and id_aluno , it only displays the first record of the database, and there...
asked by 30.11.2018 / 11:43
0
answers

Saving the data in an array skips the next question

I have the following code: #include <stdio.h> #include <stdlib.h> #include <locale.h> struct cadastro_palestra { char nome[50]; char cpf[13]; char email[70]; }; int main () { setlocale(LC_ALL, "Portuguese");...
asked by 08.11.2018 / 11:39
1
answer

Go adding values from for into array

I created an array: var tagListArray = []; for(i = 0; i<resultados.item(i); i++){ tagListArray = ["valor1", "valor2"]; } console.log(tagListArray); This resultados.item(i) returns me values, how do I add them to the array?...
asked by 08.11.2018 / 14:37
0
answers

Summation problems using vector

Well, I'm facing problems with a vector. The idea would be to go through the vector and add its values in a var. The problem: Enter 1000, it traverses and assigns 1000 to var. But when I re-type the value 500, it returns 2500. Here is the code:...
asked by 30.10.2018 / 14:11
0
answers

Drawing infinite rectangles on android

I'm trying to draw infinite rectangles on my canvas from a distance, but I can not. It starts well but in the second loop or the rectangle is the size of the screen or they disappear. I wanted three rectangles to appear in each loop. public cl...
asked by 16.11.2018 / 15:47
1
answer

How to declare null values in C

My problem is the following I am creating a loop while that can not receive values smaller than or equal to zero, and would like to also declare that it can not receive empty values for the program to force the user to enter a number an...
asked by 09.10.2018 / 14:29
1
answer

Display post with include_once [closed]

I want to list all my posts of all my custom post type, until then I get list in index.php But the problem is that it only lists one post for each custom post type. My index.php loop <?php $args = array('post_type'=>array('filmes',...
asked by 25.09.2018 / 21:59