Questions tagged as 'loop'

4
answers

How to capture elements in a json structure using javascript

I need to get some elements inside a Javascript JSON framework. I can get unit elements like this: alert(response.paymentMethods.CREDIT_CARD.options.MASTERCARD.images.SMALL.path); alert(response.paymentMethods.CREDIT_CARD.options.VISA.images.S...
asked by 04.01.2015 / 18:54
1
answer

Does a 'break' within two 'for' actually work as a continue?

If by chance I have break within two for , as in the example below: for(int i = 0; i < n; i++) { for(int j = 0; j < m; j++) { break; } { break will not cause the program to exit the two for...
asked by 10.11.2015 / 05:52
2
answers

What are the advantages of parallel.ForEach in C #?

Working with C # I have seen that we have the option to work with parallel.ForEach() . What is the advantage of working with it and not foreach ?     
asked by 14.05.2016 / 03:36
3
answers

Increase letters in PHP?

Recently I needed to increment letters in PHP within a loop repetition. For each iteration, instead of numerical indices, it needed letters of the alphabet. So, as I already know that PHP does incremental letters (and to be very simple), I...
asked by 04.02.2015 / 20:40
1
answer

Program goes into infinite loop

My goal with the code was to set up a game that asked the person which number the computer would be "thinking" (from 1 to 100), and as the person said a number from 1 to 100, the computer would tell if the random number generated is greater or l...
asked by 03.04.2018 / 02:11
3
answers

How to make a rectangle of asterisks using for?

To resolve this exercise:    Write a program that prints a rectangle of n x m asterisks in the   which values of n and m are supplied by the user. For example,   for values of n = 5 and m = 7, the expected result is:       ******* -   *****...
asked by 27.05.2017 / 21:39
3
answers

Create post in a wordpress and bring in another wordpress automatically

Options: Create a new POST in one wordpress-1, from another wordpress-2. or Everything you create in wordpress-2 be "copied" to wordpress-1 or Create / Register a product in a store -1, from another store -2. [RESOLVED] I...
asked by 27.05.2015 / 21:09
2
answers

How to make a loop / routine for the write.fst () function?

I have the following files in my working directory: Dados_1.fst Dados_2.fst Dados_3.fst Dados_4.fst ... Dados_10.fst The file Data_x.fst (where x is from 1 to 10) has the columns CODE, INSCRIPTION, ANSWER_A, ANSWER_B Then I create the fo...
asked by 16.05.2018 / 21:28
1
answer

Package bRasilLegis [command "getDetailsDownload"]

I need to collect the data of the deputies who were present in commissions, positions, etc. However, I can only do this with one deputy at a time. Is it possible that I can choose all at once? library(bRasilLegis) dep <- obterDetalhesDeputa...
asked by 02.01.2017 / 23:42
2
answers

Data window moving in time (t)

I want to make a Recursive prediction. I need every month (t) to move the data window from the last month to the next in a period (this period, that is, t + 1). dados<-read.table("C:/Biomedica/Doença/evolmensal.txt", header=T, dec=",") dado...
asked by 25.12.2014 / 23:36