|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
On Wed, 1 Mar 2006 09:03:42 +0000 (UTC), Richard Heathfield wrote:
> rami said: > >> please everybody ,can anyone tell me how to do an infinite loop in C > > I have written a program for you, that contains an infinite loop, but it > wouldn't be right to show you the code until its test run is complete. What are the specifications, specifically, (1) Under what conditions is the test run considered complete? (2) Does it maintain some sort of counter? If so, (2a) How many iterations did it perform already? (Zed) When the test finally completes, how do you know this loop has run an infinite number of times? |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Two-Horned Unicorn said:
> On Wed, 1 Mar 2006 09:03:42 +0000 (UTC), Richard Heathfield wrote: > >> rami said: >> >>> please everybody ,can anyone tell me how to do an infinite loop in C >> >> I have written a program for you, that contains an infinite loop, but it >> wouldn't be right to show you the code until its test run is complete. > > What are the specifications, specifically, > > (1) Under what conditions is the test run considered complete? When the loop has run infinitely many times. Anything less would not be a thorough test. > (2) Does it maintain some sort of counter? No, no point. I don't have that much storage. > If so, > (2a) How many iterations did it perform already? See above. > (Zed) When the test finally completes, how do you know this loop has run > an infinite number of times? I plan to be around to observe the "test complete" message. -- Richard Heathfield <http://www.cpax.org.uk> Email: -http://www. +rjh@ Google users: <http://www.cpax.org.uk/prg/writings/googly.php> "Usenet is a strange place" - dmr 29 July 1999 |
|
![]() |
| Outils de la discussion | |
|
|