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
-4
votes
3 answers

Infinite string creation

I would like to make an 'infinite' list of strings for an application. I attempted to use this.... public static void runinfinite(int length) { String lastString= " "; while (true) { if (lastString.length() > length) …
Joshua Katz
  • 11
  • 2
  • 4
-5
votes
1 answer

how to input list dynamic in python

1 ) input: 3 , return [1, 2, 3] then continue 2) input: 2, return [2, 4, 3] then continue 3) input: 6, return [3, 6, 6, 4, 5, 6] then continue 4) input: 1, return [4, 6, 6, 4, 5, 6] then continue 5) input: 1, return [5, 6, 6, 4, 5, 6] My code…
toto p
  • 1
  • 2
-5
votes
1 answer

Udacity python code a quiz

I am currently doing Udacity's introduction to programming development course. As a part of this course, I have to create a fill in the blanks game. The game is structured like this: The user is asked to choose a level based on difficulty. Once the…
-5
votes
1 answer

A number minus itself gives infinite

In a special case I have the number 0.068404 in two variables (these change while the program is running so I don't know what is in it). When I'm substracting by itself, it gives the infinite or precisely a number at the power -9. All booleans…
Render
  • 41
  • 6
-5
votes
3 answers

Why this for loop does not stop

I have been looking at this code for 20min and I can't understand why this loop is infinite, it should print 30 elements. Some text, because post is mostly code.
user3529236
  • 107
  • 2
  • 9
-5
votes
2 answers

Infinite recursion in two programs

I am writing two programs. One raises a number to the other number's power, and the other does greatest common divisor. Both of them crash using infinite recursion and I can't figure out why. Can someone look at these and give me suggestions? Please…
Kelton2
  • 1
  • 3
-5
votes
2 answers

is Set of Real Numbers Between 0 and 1 really uncountably Infinite?

Cantor's Set of Countable infinite and Uncountable infinite Infinites You may know and you may have proved that Set of Real Numbers Between 0 and 1 are Uncountably Infinite. Mean we Can not Map Every number of that set on a different Natural…
Ayub Khan
  • 896
  • 2
  • 14
  • 17
-6
votes
3 answers

Infinite array index without any pointer in C

I want to get a variable from user and set it for my array size. But in C I cannot use variable for array size. Also I cannot use pointers and * signs for my project because i'm learning C and my teacher said it's forbidden. Can someone tell me a…
M e T
  • 1
  • 2
-6
votes
1 answer

Make a infinite List stack

I want to create a List which has List as its DataType which stacks itself. Is it possible to create a List with Lists within the other Lists? Example: List>>>> But in an "infinite" way? If possible how? To list Files
RicheeNektar
  • 27
  • 1
  • 9
-7
votes
2 answers

Why is this not an infinite loop in C/C++

I cant figure out how the following loop can ever end: for(int i;i
EzioPC
  • 35
  • 4
1 2 3
72
73