Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
infinite
- Page 1
Re: Create Infinite Loop In Bash
Hardware and Software
Linux and Unix
2 Weeks Ago
by Vince_6
Be Careful what you wish for. When I was first using Unix one of our programmers wrote a Bash script something like: While 1 Do Something He eventually overloaded the system and it crashed.
Re: Create Infinite Loop In Bash
Hardware and Software
Linux and Unix
2 Weeks Ago
by asadalikhan
while true; do echo "Running..."; sleep 60; done This runs forever, printing "Running..." every 60 seconds. No script file needed, just drop it in the terminal and you're good.
Infinite Loop when searching through a database
Programming
Software Development
12 Years Ago
by anumash
…my program is getting stuck in an
infinite
loop!? /* program used to determine the…B' etc.. the program gets stuck in an
infinite
loop and I don't know why. */…size { of a given entry */ while(ch!='\n') //
infinite
loop?? {chars++; ch=fgetc(fp); } } else { …
Infinite Loop for Certain Entries
Programming
Software Development
11 Years Ago
by thomasbeecher
… it was graded), I found that under specific circumstances an
infinite
loop occurs. I couldn't go on with life until…. 3. Instead of typing a number, type a letter. 4.
Infinite
loop occurs. If the program is started and a letter…, it does reject it and will end the program. The
infinite
loop occurs only after the program has been run at…
Re: Infinite array
Programming
Software Development
17 Years Ago
by Suraine
ya, i dun have
infinite
amount of memory, instead a limited one. I wanna use … i have a limited memory system. Hence i need an
infinite
array. So, niek_k, u mean, in my condition…,
infinite
array will not be a good condition for me, right? …
Infinite Loop
Community Center
16 Years Ago
by tttstarr
… to know if there is such a thing as an
infinite
loop designed to allow one to take a sound (ex…. a rain storm) and put it in an
infinite
loop. Since I am not a programmer it would pretty…
Infinite loop problem need help plz
Programming
Web Development
16 Years Ago
by Frosty[tnt]
… and just learning PHP and need some help on an
infinite
loop problem. The code is supposed to find how many… i asked my instructor and he said i have a
infinite
loop. I honestly dont have a clue what to look…
Re: Infinite Loop when searching through a database
Programming
Software Development
12 Years Ago
by anumash
i tried changing ch to int but it is yet not giving me the desired output.
Infinite
loop again :(
Re: Infinite Loop when searching through a database
Programming
Software Development
12 Years Ago
by deceptikon
… it wouldn't compile at all, much less create an
infinite
loop at runtime.
Re: Infinite Loop when searching through a database
Programming
Software Development
12 Years Ago
by deceptikon
If the stream is at the end of the file, fgetc() will always return EOF regardless of how many times you call it. In other words, unless you have a breaking condition that checks for EOF or ensure that end-of-file won't be reached in the loop, it will be
infinite
.
Re: infinite loop
Programming
Software Development
20 Years Ago
by felgall
That code isn't an
infinite
loop. It loops twice adding 1/2 each time round … 1. The following would "in theory" be an
infinite
loop but in practice would terminate once the fractions became…
Re: infinite loop
Programming
Software Development
20 Years Ago
by Dave Sinkula
Which seems to make more sense? Try them side by side.[quote]To avoid an
infinite
loop make sure the loop body alters the exit condition. To avoid an
infinite
loop make sure the loop body contains at least one output statement.[/quote]Would altering the loop exit condition affect looping? Or would an output statement affect loop operation?
Re: infinite loop - usage?
Programming
Software Development
17 Years Ago
by majestic0110
ok Ezzaral and Phaelax thanks for the replies that does make sense. I am just aware that often
infinite
loops are a product of logic errors and wondered if there was ever a need to use an
infinite
loop. Cheers!
Re: Infinite array
Programming
Software Development
17 Years Ago
by Nick Evan
An
infinite
array would take up an
infinite
amount of memory and I suppose you don't have that?
Re: Infinite Loop
Community Center
16 Years Ago
by tttstarr
… storm sound. Then I would like to be able to
infinite
loop it (hopefully seamlessly) so that I would be able…
Re: Infinite Loop
Programming
Software Development
16 Years Ago
by VernonDozier
… hard time getting this program to run w/o an
infinite
loop. I have been in my C++ class for a… what it really is. That won't give you an
infinite
loop because it won't even compile. [noparse] [code] // paste…
Re: infinite loop
Programming
Software Development
15 Years Ago
by AAAKsu
[QUOTE=soccergad;1040179]This code when compiled ...saids it contains
infinite
loop but i don't how to fix it? can … criteria in the while loop never gets changed causing an
infinite
loop. Should look something like this: [CODE] while (sprinkles == "…
Re: Infinite Loop?
Programming
Software Development
12 Years Ago
by JamesCherrill
…'s in the loop. So your loop will always be
infinite
. If f(x)!=a the condition is true, but if… be true. Line 13 should print "the loop is
infinite
", or do something to fix the situation.
infinite loop
Programming
Software Development
20 Years Ago
by lindsay867
… computer lab class we were given a program with an
infinite
loop, and I am unsure what to do. Here is…
Re: infinite loop
Programming
Software Development
20 Years Ago
by Dave Sinkula
[QUOTE=felgall]That code isn't an
infinite
loop. It loops twice adding 1/2 each time round ending up with a total of 1.[/QUOTE]Not so with integer math. Dividing 0 by 2 doesn't help either. [url="http://www.eskimo.com/%7Escs/C-faq/q14.5.html"]And one shouldn't really be comparing floating point for (in)equality either[/url].
infinite loop
Programming
Software Development
20 Years Ago
by dal4488
This is a question on one of my homework assignments and I have it narrowed down between these two but I'm not sure which one it is. Anyone know it? To avoid an
infinite
loop make sure the loop body: alters the exit condition or contains at least one output statement?
Re: infinite loop
Programming
Software Development
20 Years Ago
by thedk
To avoid an
infinite
loop, you should make sure the condition or test value is not skipped over. That's as far as I know.
Infinite Loop in the switch statements
Programming
Software Development
19 Years Ago
by curly3top
…, 3, or 4 are chosen the program goes into an
infinite
loop except for case 1 which works fine.... [code] //this…
Infinite loops and Ialmrnt5 on dvds
Hardware and Software
Hardware
19 Years Ago
by Rat Boy
… a blue screen saying the system was caught in an
infinite
loop caused by the file "Ialmrnt5", one of…
infinite loop
Programming
Web Development
17 Years Ago
by nishanthaMe
I want to run an
infinite
loop,as soon as my web server start up.I can write php loop but how i start it from the start of the server without user request for starting.
infinite while loop
Programming
Software Development
17 Years Ago
by knish
… me if I am wrong. What happens when two different
infinite
while loops execute one after another. Such that the last…
infinite loop in recursion-no clue
Programming
Software Development
17 Years Ago
by shankhs
… in the function "fnc" I am getting an
infinite
loop. HOW??? PLZ help....
Re: infinite loop in recursion-no clue
Programming
Software Development
17 Years Ago
by VernonDozier
It looks to me like you are calling the function fnc with the exact same values every single time you call it so an
infinite
(till it crashes) loop makes sense since it's doing the same thing every time. You're passing fnc parameters x1 and x2, which never change. Do you want to do that?
Infinite looping
Programming
Software Development
17 Years Ago
by jer_stud56
Everything compiles, but after I input I just get an
infinite
loop. Is there something I can do differently to make …
Re: Infinite looping
Programming
Software Development
17 Years Ago
by prushik
you need an input statement inside your while loop. Take the break statement out, it was an
infinite
loop because score can never = -999 because score never changes inside the loop.
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC