delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/31/04:08:48

From: br5an AT aol DOT com (Br5an)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Ugly number generator and invisible bug!!!
Date: 31 Aug 1997 04:00:05 GMT
Lines: 19
Message-ID: <19970831040001.AAA06310@ladder01.news.aol.com>
NNTP-Posting-Host: ladder01.news.aol.com
Organization: AOL http://www.aol.com
References: <01bcb594$8c8efe60$LocalHost AT home-computer>
SnewsLanguage: English
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>Subject: Ugly number generator and invisible bug!!!
>From: "Jamie Love" <jamie DOT love AT clear DOT net DOT nz>
>Date: 30 Aug 1997 22:26:20 GMT
>Message-id: <01bcb594$8c8efe60$LocalHost AT home-computer>

> int ugly(int n)
>{
>  .
>  .
>  .
>    while(int(array[temp2]) <= int(temp/2));
>    {

I think you might want to stop here an verify that you intended to
put the  ;  at the end of the  while( . . . )  statement. Hope that helps.  




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019