Questions tagged as 'ciclo-infinito'

2
answers

Why this code goes into infinite loop?

Why do I put an invalid entry as asdf the code below goes into infinite loop? After catching the exception and writing the message, should not it ask for another entry again? import java.util.Scanner; public class Leitura { public st...
asked by 04.04.2014 / 05:22
1
answer

Brute force algorithm for game resolution Sudoku in C

I have the following code written in C : #include <stdio.h> #include <stdlib.h> #include <time.h> // Variáveis globais int jogo_tabuleiro[9][9] = {0}; int func_quadrante(int quadrante, int numero) { int linha_inic...
asked by 28.06.2016 / 06:00
1
answer

How do I loop endlessly without bursting memory?

I'm trying to make a program that makes requests on a DDE server, so I need to collect the data every 0.1 sec. But at each iteration of the program the computer's memory increases and in the end to the script. I'm trying like this: def requ...
asked by 23.02.2017 / 20:26
1
answer

How to avoid infinite cycle in function / call that reduces letter size?

I've created this small jQuery extension that aims to reduce the size of text by setting% css% of CSS based on% of its container%. The operation is simple, find the current font size and remove a pixel, then apply a new CSS definition for the...
asked by 23.12.2013 / 16:25
1
answer

Generate map infinitely

I'm developing a game and I just found a rather boring difficulty, it's a logic problem ... Next: Imagine the scene of the game Where,theblacksquarewherethe"Player" is, is the view of the camera the remaining ones are balls instantiated in r...
asked by 06.03.2016 / 21:55
1
answer

Infinit Scroll - does not bring all DB data

I'm trying to implement an infinit scroll in my project, but I'm having trouble solving this problem The connection is perfect and I'm getting the DB information, but the code only shows one entry, what should I change to resolve this? Cod...
asked by 05.02.2018 / 22:56
1
answer

Game resolution Sudoku giving infinite loop in C

I have the following code in C : #include <iostream> #include <stdio.h> #include <stdlib.h> #include <time.h> // Variáveis globais int jogo_tabuleiro[9][9] = {0}; int func_quadrante(int quadrante, int numero) {...
asked by 20.06.2016 / 00:00
2
answers

This code is leading me to an infinite cycle and I can not understand why

This code is leading me to an infinite cycle and I can not figure out why. #include <stdio.h> #include <stdlib.h> #include <time.h> void troca (double *n1, double *n2) { double n; n = *n1; *n1 = *n2; *n2...
asked by 20.12.2017 / 20:51
1
answer

Cancel loop / script in progress on server [closed]

Good morning, How to cancel an infinite Loop in the Script that is already running on the server? It was a routine I created for email firing, however by carelessness it is in infinite loop and the process does not stop. It is already in p...
asked by 28.11.2016 / 11:59