🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bln.sci.informatik
Article #75

Re: help! C++ programming

#75
From: Elmar Fasel
Date: Mon, 12 Jul 1999 00:00
26 lines
1269 bytes
Clemen Gilles <clem1@t-online.de> wrote:
> Why is this program not stopping?

Wahrscheinlich weil das eine deutschsprachige newsgroup ist ... :-)

Probier mal folgendes (was sich ohne warnings compilieren laesst):

int main (void)
{
 double x=2.0, y=3.0;
 while (x<y)
 {
  printf("%.20f\n",x);
  x=x+0.1;
 }
 return(0);
}

Dann siehst du wahrscheinlich schon, warum deine Loesung nicht klappen
konnte.
Fliesskommazahlen nie auf Gleichkeit ueberpruefen... oder eine
fehlertolerante Vergleichsfunktion schreiben.

Ciao, Elmar
-- 
Elmar_Fasel@gmx.de
Technical Details
Message-ID: <7md5ov$d0j$1@news.cs.tu-berlin.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7mcn2a$pre$1@news01.btx.dtag.de>

Show Full Headers
Complete Article Headers
X-Google-Language: GERMAN,ASCII-7-bit
X-Google-Thread: 10d38e,1866a48e80b4c76c
X-Google-Attributes: gid10d38e,public
From: Elmar Fasel <efasel@cs.tu-berlin.de>
Subject: Re: help! C++ programming
Date: 1999/07/12
Message-ID: <7md5ov$d0j$1@news.cs.tu-berlin.de>
X-Deja-AN: 500160153
Content-Transfer-Encoding: 8bit
References: <7mcn2a$pre$1@news01.btx.dtag.de>
Content-Type: text/plain; charset=ISO-8859-1
X-Complaints-To: news@cs.tu-berlin.de
X-Trace: news.cs.tu-berlin.de 931797599 13331 130.149.31.103 (12 Jul 1999 16:39:59 GMT)
Organization: Technical University of Berlin, Germany
Mime-Version: 1.0
NNTP-Posting-Date: 12 Jul 1999 16:39:59 GMT
Newsgroups: bln.sci.informatik