PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.c > Re: how to do an infinite loop
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Re: how to do an infinite loop

Réponse
 
LinkBack Outils de la discussion
Vieux 13/04/2008, 02h50   #1
Two-Horned Unicorn
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to do an infinite loop

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?

  Réponse avec citation
Vieux 13/04/2008, 03h23   #2
Richard Heathfield
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to do an infinite loop

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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h47.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08309 seconds with 10 queries