Questions tagged as 'for'

1
answer

Nested for thread conversion

I have the following% nested for that runs the entire length of a bitmap image in C #. I would like to run the second for threads to run parallel. Bitmap alterado = new Bitmap(original.Width, original.Height); //Convertendo para to...
asked by 01.12.2016 / 19:11
1
answer

Variable not set in for-loop in Python

I'm having a problem with a code that should read 4 values using raw.input().split() and then a for-loop to transform those values into float . The interpreter returns me:    "name 'val' is not defined" Follow the code...
asked by 26.08.2016 / 00:46
1
answer

How to insert data using query in a for loop?

I'm trying to insert data into the mysql DB, and some data is repeated, and others not so who would command the number of executions would be for , but not executing the query inside the for. I already did some test of echo and the...
asked by 19.06.2016 / 22:49
1
answer

Read a vector up to a stop bit

I want to read an 8-bit binary vector backwards, and stop until I read the last 1 . For example: [00010101]
asked by 19.09.2015 / 14:49
1
answer

Iterate values of two requests in * ngFor

I'm making two requests in the database, one brings the grouped requests just for preview on the front, the other brings all the values, the latter needs to show the total of each request along with the first request view. listOrders() {...
asked by 03.12.2018 / 15:38
3
answers

How to create letter list alphabetically in PHP according to variable number

I need to create a list of letters in alphabetical order, according to the variable $ nalternativas, for example: $alternativas = 3; aí preciso criar: a b c If $ nalternativas is 2, there will only be a, b, and so on. How can I do this?...
asked by 02.10.2018 / 23:03
1
answer

In descending order, remove a value from the entered number up to 0

I need the program to remove a value from the number entered by the user until it reaches 0. I do not know if the replay loop used should be for, but my program looked like this. package numerodescrecente; import java.util.Scanner; public cl...
asked by 25.08.2018 / 20:57
0
answers

For is taking the rest of the sample variables into R

I am making a sample and its size is in a worksheet called "tamamostra". When I use the for command, as below, the sample is made, but only the first column appears for each sample, I would like the whole database to appear for each sample. bo...
asked by 17.07.2018 / 21:39
1
answer

I can not execute the jquerry loop

I need to create a loop for msm to feed a graph. while($(".previsto").eq(0).text(),){} I need to get these values eq (0), eq (1), eq (2) ... $(".previsto").eq(0).text(), $(".previsto").eq(1).text(), $(".previsto").eq(2).text(), ...   ...
asked by 27.08.2018 / 21:21
0
answers

Chase Secret Issue - OBI 2017

I'm solving the following OBI problem: link Secret of the safe The secret system for opening this safe is quite complex. Instead of turning a button several times, as you usually see in the movies, the owner of the safe has to slide a contr...
asked by 15.05.2018 / 15:51