Questions tagged as 'loops'

1
answer

Numbers that are not repeated in JavaScript fixes

I am doing a capture program where a teacher enters your password, if the password has not been registered before then you can register your name but if it is already registered a message will be sent saying "error". However, I'm not very good a...
asked by 19.07.2017 / 04:17
1
answer

ASP.NET MVC Razor: Way to optimize for loop to avoid System.OutOfMemoryException [closed]

Good morning, basically my question is that: I have an mvc razor application that loads a data context with several tables and views. Once loaded all the models (in my viewmodel) armo grillas using for loops in the following way: @for (int i =...
asked by 16.06.2017 / 16:45
1
answer

Template error "no arguments depend on a template parameter"

There is an exercise that I tried to do and that does not compile me, despite correcting several foolish failures, but the issue is that it fails due to (I think) errors in the approach. this is the statement:    Develop the template metho...
asked by 31.07.2017 / 02:12
1
answer

Help with counting and comparing a variable in FOR in C

I hope you can help me with this statement that I got from homework, I can not find the way to do the point to, and with the rest: -As a result of an experiment, a laboratory obtained 18 values of temperature, all other than zero. A program m...
asked by 25.04.2017 / 22:30
0
answers

Exception in thread "main" java.lang.NumberFormatException: For input string: "through"

I need some help with this error and I have tried many things but I do not know what D can be: Here I leave the code to see if you can help me: package Modulos; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Dimension; im...
asked by 05.03.2017 / 02:54
1
answer

because they use the loop_start method?

hi what happens is that I do not understand why in some codes they use loop_start and loop_end to fill tables in html for example: <table class="table table-hover"> <tr>...
asked by 08.02.2017 / 22:04
1
answer

In R, divide dataframe by ranges of column values. Make operations iteratively and paste results

I have a very simplified version of a fairly large dataframe A (50 columns and 1000000 lines): Palabra Frecuencia Numero hola(1.4) 0.15 1 amigo(1.2) 0.67 2 sol(0.3) 0.85 7 hola(7.1) 0.4 3 hola(5.1...
asked by 09.02.2017 / 00:55
3
answers

On different interpretations of the for cycle

How to read the for cycle of the code? I guess it reads like this: For each digit of type char read it and convert it to an array of characters or maybe like this: For each digit of type char read it and add it to an array of chara...
asked by 28.08.2017 / 04:53
1
answer

Why does the operator cause problems when comparing two conditions in a do while in java?

For example: import java.util.Scanner; public class PruebaDeMetodos { static Scanner teclado ; public static void main(String[] args) { System.out.println("Escoje las opciones 'a' 'b' 'c':"); boolean anulado=false;...
asked by 14.07.2017 / 03:41
1
answer

Help with error in a for cycle to obtain a value of an array

I have an array: array = [[1,2,3],[4,5,6]] and I want that with one cycle to print on screen only 2 and 5, for that I did: for i in array: print(array[i][1]) but then I get the following error:    TypeError: list indices must be...
asked by 04.03.2018 / 21:14