473,889 Members | 1,386 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to do an infinite loop

please everybody ,can anyone tell me how to do an infinite loop in C

Mar 1 '06
59 79849
Man with Oscilloscope wrote:
On Wed, 1 Mar 2006 09:03:42 +0000 (UTC),
Richard Heathfield <in*****@invali d.invalidwrote:
>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.
I'd be very interested to see that code too, so... what's the status? Is
it anywhere near infinity yet?

Many thanks in advance.
[Sarcastic example I came up with removed.]

<http://www.google.com/search?hl=en&sa =X&oi=spell&res num=0&ct=result &cd=1&q=C+langu age+infinite+lo op>
Jul 17 '06 #41
Keith Thompson wrote:
Richard Heathfield <in*****@invali d.invalidwrites :
>>Man with Oscilloscope said:

<snip>
>>>I'd be very interested to see that code too, so... what's the status? Is
it anywhere near infinity yet?

137 days later... it's still going strong, but there's some way to go yet.


"Are we there yet?"
Maybe you could send me the code in a private message for testing. I've
got a machine here that does the infinite loop in a couple of hours.
-- Mark.
Jul 18 '06 #42
U
On Wed, 1 Mar 2006 09:03:42 +0000 (UTC), in comp.lang.c,
msgid:<8f****** **************@ bt.com>, 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.
I'm almost afraid to ask... what's the progress?

Regards,
U

--
U
Pre-ANSI C User Group, Ur, Mesopotamia, founding member
email: U@foo.example.n et

Dec 19 '06 #43
U <U@foo.example. netwrites:
On Wed, 1 Mar 2006 09:03:42 +0000 (UTC), in comp.lang.c,
msgid:<8f****** **************@ bt.com>, 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.

I'm almost afraid to ask... what's the progress?

Regards,
U
U! It's you! Where have u been?

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Dec 19 '06 #44
Keith Thompson wrote:
U <U@foo.example. netwrites:
>On Wed, 1 Mar 2006 09:03:42 +0000 (UTC), in comp.lang.c,
msgid:<8f***** *************** @bt.com>, 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.

I'm almost afraid to ask... what's the progress?

Regards,
U

U! It's you! Where have u been?
We can now leave all requests like "can u help me ..." to U. That
should reduce the load.

Hmm. Can we find some idiot\\\\\publi c benefactor to participate here
under the name "You"?

--
Chris "HO. HO. HO." Dollin
"A facility for quotation covers the absence of original thought." /Gaudy Night/

Dec 19 '06 #45
Chris Dollin wrote:
>
Keith Thompson wrote:
U <U@foo.example. netwrites:
Regards,
U
U! It's you! Where have u been?

We can now leave all requests like "can u help me ..." to U. That
should reduce the load.

Hmm. Can we find some idiot\\\\\publi c benefactor to participate here
under the name "You"?
I used to know a Korean named Yu, and a Chinese guy named Hu.
But I knew them at different times in different places
so I was never able to introduce them to each other: "Hu, Yu. Yu, Hu."

--
pete
Dec 19 '06 #46
U said:
On Wed, 1 Mar 2006 09:03:42 +0000 (UTC), in comp.lang.c,
msgid:<8f****** **************@ bt.com>, 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.

I'm almost afraid to ask... what's the progress?
In absolute terms, it's extremely encouraging - the loop is proceeding very,
very quickly. But there's a long way to go yet.
Regards,
U
How was your holiday?

(Make sure you're sitting down before you look at the size of your in-tray.)

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Dec 19 '06 #47
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.
This thing still running?

Dec 14 '07 #48
Franz Hose said:
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.
This thing still running?
Yes, although for a week or two it slowed almost to a crawl (the machine
was very busy doing some heavy prime calcs) - but it soon picked up again
afterwards.

I've had to be pretty firm about this program - I've had no fewer than
three (rather generous) offers for exclusive rights to the source code,
one of them from someone in the States who called himself "Mr G", but I
cannot in all conscience release the code, even commercially, until the
test is complete.

--
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
Dec 15 '07 #49
In article <bI************ *********@bt.co m>,
Richard Heathfield <rj*@see.sig.in validwrote:
>I've had to be pretty firm about this program - I've had no fewer than
three (rather generous) offers for exclusive rights to the source code,
one of them from someone in the States who called himself "Mr G", but I
cannot in all conscience release the code, even commercially, until the
test is complete.
I don't think you need worry. Unless they have *very* fast computers,
their copy won't terminate before yours.

-- Richard
--
:wq
Dec 15 '07 #50

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

43
5620
by: Gremlin | last post by:
If you are not familiar with the halting problem, I will not go into it in detail but it states that it is impossible to write a program that can tell if a loop is infinite or not. This is a fallacy built on the assumption of mythical infinite all powerfull machines. In reality we deal with finite machines that are capable of two states in a loop, they either terminate, or repeat themselves. In the mythical halting problem scenario...
5
4957
by: mailpitches | last post by:
Hello, Is there any way to kill a Javascript infinite loop in Safari without force-quitting the browser? MP
4
2644
by: LOPEZ GARCIA DE LOMANA, ADRIAN | last post by:
Hi all, I have a question with some code I'm writting: def main(): if option == 1: function_a()
10
7664
by: Steven Woody | last post by:
i have a program which always run dead after one or two days, i think somewhere a piece of the code is suspicious of involving into a infinite loop. but for some reason, it is very hard to debug. so i thing there might be tool which can statically analysis the code and notice me this kind of potential problems if found. any suggestion? ( i prefer linux open source tools ) thanks. -
44
4320
by: James Watt | last post by:
can anyone tell me how to do an infinite loop in C/C++, please ? this is not a homework question .
0
9807
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11188
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10789
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10441
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7993
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7150
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6028
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4647
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4251
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.