delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/11/25/20:15:45

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-ID: <3FC3D522.29F510C2@yahoo.com>
From: CBFalconer <cbfalconer AT yahoo DOT com>
Organization: Ched Research
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: another newbie C question
References: <bq01aj$btt$1 AT news6 DOT svr DOT pol DOT co DOT uk>
Lines: 29
Date: Wed, 26 Nov 2003 01:06:57 GMT
NNTP-Posting-Host: 12.76.140.197
X-Complaints-To: abuse AT worldnet DOT att DOT net
X-Trace: bgtnsc04-news.ops.worldnet.att.net 1069808817 12.76.140.197 (Wed, 26 Nov 2003 01:06:57 GMT)
NNTP-Posting-Date: Wed, 26 Nov 2003 01:06:57 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Keith__ wrote:
> 
> im having probs with the following program. i need it to loop after a
> percentage is entered, asking for another one continuosly unless the
> percentage is a negative in which case the program should end. could someone
> please show me what im missing.

Your shift key is broken.

Write down what you want, and then write functions to implement
the required actions:

int main(void)
{
   int mark;

   while ((mark = getamark()) > 0 {
      printclassification(mark);
   }
}

Now you can think about how to implement the simpler functions
getamark and printclassification.

-- 
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net)
   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>  USE worldnet address!

- Raw text -


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