Questions tagged as 'loop'

0
answers

Doubt About Vary and Function

Personal I'm starting in Python, with the following features: -User enters with temperature limit -It read the user temperature compared to the sensor temperature -If Sensor Temperature is > User Temeratura  Turns on Cooler and lights Red LED...
asked by 19.12.2017 / 22:03
0
answers

How to make an infowindow with different content for each marker in a loop

I'm trying to make each marker in this loop have an infowindow with different content, the arrays are the same size and are being taken from the database, the problem is that instead of creating new infowindow it just replaces the contents of th...
asked by 07.10.2017 / 22:21
2
answers

Loop to Repeat Names

Dear Community, I think the solution is simple, but I'm trying to do the following business rule: I have a list of names in a Plan1, I need the name of each of them to be repeated by 12x each in Plan2, I have a code that can repeat the fir...
asked by 06.09.2017 / 19:18
3
answers

When to use recursion and when to use loops?

A problem can be solved and get the same result as a loop or through Recursive calls to a function.
asked by 16.06.2014 / 19:13
2
answers

Automatically fill cells in excel using VBA

Good afternoon community, I am trying to work with VBA in Excel to try to apply this knowledge in my master's thesis, but I have some questions. I'm trying to create a function in VBA that populates cells by a given value. In the next imag...
asked by 13.07.2017 / 19:41
1
answer

Calculating in foreach php with jquery

I would like to know if it is possible to run a real-time calculation with jquery inside a php foreach and how? This is my code: <?php $Read = new Read; $Read->ExeRead("c100web", "WHERE codclient = :client", "clie...
asked by 22.06.2017 / 21:36
1
answer

Update label in loop

How do I update a label in a loop on the FXMLDocumentController ? The labels only update after the entire loop is finished and then plays the last information on the screen; package musicaisfx; import java.awt.Font; import java.awt.even...
asked by 30.05.2017 / 07:53
1
answer

List append on for loop - Swift 3 / Xcode 8 [closed]

I'm having a problem adding items to a list inside the 'for' loop, where all items in the list are repeated with the last value entered. Here's my NSManagedObject list var listCursosNovos: [Cursos] = [] Here's my loop: for i in 0..&l...
asked by 23.01.2017 / 01:34
1
answer

How to stop a for loop that stores strings values entered in C ++?

So I've tried everything I tried to compare type typed a "." or set a threshold value and even then the program does not continue, it stays within the infinite loop. The code comes next: vector<string> inserir(){ vector<string>...
asked by 20.01.2017 / 16:51
1
answer

Print all results of a vector with a certain value

I'm starting the studies in C. I have a question about how to go through a vector looking for a value in it and print showing with printf all the values found. The program I'm doing: link In the above program, it would be case 5,...
asked by 30.11.2016 / 12:18