Questions tagged as 'bucle-for'

1
answer

Error no-restricted-syntax iterators / generator on Eslint Airbnb

I'm testing Eslint using the Airbn style guides, I use the airbnb-base package My doubt arises from this error in a loop for..of error: no-restricted-syntax - iterator/generator In the documentation says:    Do not use iter...
asked by 06.04.2018 / 22:32
0
answers

Valgrind errors in compilation and execution

When I run a program with the valgreend I get the following: ==6153== Invalid read of size 4 ==6153== at 0x401620: estado::n_transiciones() (estadoNFA.cpp:31) ==6153== by 0x401C82: nfa::mostrar(std::ostream&) (NFA.cpp:96) ==6153==...
asked by 18.10.2017 / 02:49
0
answers

Angular.io does not print my form

Good morning, I am creating a pure component to generate forms. The problem I have is that it generates the labels well but it shows me the HTML code instead of printing the input. This is my code: <div *ngFor="let i of cols" class="form...
asked by 12.06.2017 / 09:46
1
answer

Increase ProgressBar through ANDROID loop

I have a splash screen which has a progressbar where in the future I will perform the bd existence checks of the application etc. But now I would like to understand how to make that bar progress for example through a for loop. How would the c...
asked by 22.04.2017 / 03:01
2
answers

Result of iteration of array in a variable

Hi, what I want is to get a random value stored in a variable after iterating a loop array 10 times. The code that I've made just throws me a letter. If anyone can give me a hand with this, I would be grateful. Greetings. var palos =...
asked by 21.08.2018 / 13:43
1
answer

Warring: mysqli_query () expects parameter 2 to be string, object given in

I leave the code so you can help me: <?php session_start(); include ('Connections/conexion2.php'); $arreglo=$_SESSION['carrito']; $numeroventa=0; $re=mysqli_query($con, "SELECT * from compras order by numeroventa DESC limit 1") o...
asked by 11.06.2018 / 04:14
1
answer

How can I show the values that are stored in the for cycle from C # console [closed]

Enter 5 numbers and show on screen int n=1; for(int i = 0; i < 5; i++) { Console.WriteLine("Dame un numero"); n = Convert.ToInt16(Console.ReadLine()); } Console...
asked by 07.11.2018 / 19:31