Questions tagged as 'loops'

2
answers

Concatenate in a cycle in C

I have a problem, when I want to go concatenating it is the variable of type string temp every time the cycle is repeated this variable is restarted. Why is this happening and what can I do to solve it? void processData( int *digits, int digit...
asked by 26.02.2017 / 04:43
1
answer

Button that counts and adds data Excel VBA

I have to make a form that when I press a button I add a product to a table for a purchase ticket For that use the following code Private Sub AMERICANO_Click() Worksheets("Ticket_print").Activate Dim L As Variant Dim MyCount As Long L = Hoja2...
asked by 09.06.2017 / 08:47
3
answers

Increase in loop For not working

I have a for loop that does not work properly for me. If I do a Debug, the increment always resets to 0 so it only reaches 1. Here is part of the code: First I loop % for to call the userID var userDataId = client.GetUser(D...
asked by 01.03.2016 / 19:03
2
answers

Go through arraylistString and compare substrings if they are the same or similar

My question is How can I compare the strings that I have within a arraylist<String> so that it shows me the ones that are repeated? BUT these strings are irregular, for example: I have the following files in a folder. I h...
asked by 24.01.2018 / 18:54
1
answer

Label for attached to a radio input

I wish that when selecting the text of a radio button the corresponding button is assigned or selected. The nomenclature is usually that the name that we assign to label for must be the equivalent of the name of id of inp...
asked by 04.01.2018 / 23:58
1
answer

Subtract the previous value within a row and accumulate it in another matrix in R

My intention is for a given matrix, go through the row and each value [i,j] subtract the value [i,j-1] . Once traveled, if the value is negative, it accumulates it in [i,2] and if it is positive in [i,1] . Here's an...
asked by 25.09.2017 / 17:57
1
answer

Python xlsx loops, repeat actions

I have the following problem: With the code I will paste below, I charge my .xlsx. In it I have columns and in them different values. I add one more column that will have a specific value for each row. My problem is that I do it individually...
asked by 24.08.2017 / 10:36
1
answer

HashMap shows me duplicate elements java

My question is How can I show only the records I have in my hashmap without repeating them? Ex: I have a arraylist<String> loaded with data, I also have a text file loaded with data inside. File content .txt : 25, Argenti...
asked by 03.09.2017 / 04:34
1
answer

Cycle with 2 counters in Java [closed]

Is it valid to make a cycle like this one? for(i=0,j=0;a[i][j]==0;i++,j++) Would it increase both variables with each iteration performed?     
asked by 12.08.2017 / 19:57
0
answers

How is the correct way to do an iterable function

I have been working for a few days with a function that operates with data of 2 document .csv . There are many steps, but basically what it does is take identifying numbers (ID) that were categorized from lowest to highest according to the...
asked by 22.07.2017 / 04:49