Questions tagged [infinite]

An infinite structure or process is one which does not terminate. Infinite loops or structures may be bugs in certain contexts, but also may be desired behavior, particularly in server-processes or lazy languages.

An infinite structure or process is one which does not terminate. Infinite loops or structures may be bugs in certain contexts, but also may be desired behavior, particularly in server-processes or lazy languages.

1090 questions
-2
votes
1 answer

Coupon collector's problem in python using deck of cards

having an issue in regards to writing a program that can simulate the number of picks from a deck of cards needed before getting one of each suit. I run into an infinite loop, and I'm not sure how to get out of it and get my required output. import…
PWier
  • 91
  • 6
-2
votes
1 answer

Is there a way to stop scanner input loop after the condition has been met?

I am attempting to only allow the user to pick from the given of input. If they pick something other than "f", "F", "c", or "C" for the first optionGate, then they will be prompted to try again and looped back to the scanner. It is the same…
-2
votes
1 answer

infinite loop in the first function dont know how to fix

Keep getting stuck in an infinite loop dont know where my logic went wrong used while eof and dont know what else is missing, also break statement didnt do anything but print out my test statement once void readSetupData(string sfile, string efile,…
potart
  • 1
-2
votes
1 answer

Making a Hyperwebster Dictionary

I just watched a VSauce video and he mentioned that the Hyperwebster dictionary consists an infinite amount of words, but each character after another is the next in the English alphabet. Under that logic, every name, joke, phrase, book, and insult…
lucas
  • 1
  • 3
-2
votes
1 answer

How To Register user Form with all dynamic fields name in php

User Name :
User Mobile:
User Email:
Waseem Ahmad
  • 303
  • 3
  • 10
-2
votes
2 answers

Why does my program loop the output infinitely when the user inputs anything besides and integer? C++

So the user is supposed to be able to input a number between 1-15 to move a tile on a 2d game board. If the user inputs any integer that isn't in the range, the program will output a prompt to enter something else. However, if they enter a…
Jason
  • 25
  • 1
  • 8
-2
votes
3 answers

Infinite looping alert box in javascript

My question is, how come my "You got it!" alert keeps going on infinitely? I know I can make it break there, but I want to know why it keeps doing that. It should have that secret_number===answer and break out of the while loop, so obviously it's…
Hye Shusho
  • 311
  • 2
  • 12
-2
votes
4 answers

Code complete, but creates an infinite loop?

I am trying to print a pattern like this below, I have the code running with no errors but it generates an infinite loop and I am not certain why; * ** *** **** **** *** ** * Any guidance or help would be great! Thanks #include #include…
J. Doe
  • 3
  • 1
-2
votes
1 answer

Infinite print list function

I am implementing a linked list class in C++, and my print function keeps printing forever. I am wondering if my insert function is turning my linked list into a circular linked list, that would explain why my print function keeps going around in…
Priya Gill
  • 67
  • 1
  • 5
-2
votes
2 answers

How to fade different text to each other infinitive in jQuery?

I wanted to show 2 different texts in a same location in my website like a news ticker. The effects I want to use are fadeIn and fadeOut. Texts must come to specified area using fadeIn effect, stay there for 3 seconds and then go out using fadeOut.…
Mohammad Saberi
  • 12,864
  • 27
  • 75
  • 127
-2
votes
2 answers

Windows Forms infinite loop exception

I quickly made a Windows Forms project which loads a GUI of different textboxes with float values. Some of them do have already a value initialized. All textboxes have to be updated after one of them is changed. public Form1() { …
Kevin
  • 229
  • 2
  • 10
  • 19
-2
votes
1 answer

Infinite scroll on a foreach loop

So I created a foreach loop like below, and it's loading in images from the server a couple hundred of em and I want it to load more images as I scroll down the page so it's not loading all the hundreds of images at once.
Frank
  • 119
  • 1
  • 13
-2
votes
3 answers

Stream makes function run forever

What kind of stream can cause to function run forever ? Is such stream exist ?
dima
  • 27
  • 1
  • 3
-2
votes
1 answer

I do not know how to keep it from cloning the delete button

Hi I have been working on this for hours now but I still do not understand where I am going wrong this is what we were asked to do Now add a button Delete to each new item (not to the first one). By clicking on this button, the corresponding item…
mimireine
  • 41
  • 7
-2
votes
1 answer

while(scanf) is infinite looping?

The code is supposed to accept a line of user input containing different characters and then print out one line containing only the letters. For example, Cat8h08er64832&*^ine would be Catherine. However, the code works and outputs "Catherine"…
Quinn Tai
  • 55
  • 1
  • 7