delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/03/11:06:41

From: "jdm" <jdm1intx AT DIE_SPAMBOT_DIEairmail DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: I Need HELP QUICK, help please
Date: Sun, 2 May 1999 22:02:29 -0500
Organization: Diversified Quantum Chromodynamics International
Lines: 24
Message-ID: <FF9D429FF7813EA6.81FBD365751FE72F.A1A4885614BF2E62@library-proxy.airnews.net>
X-Orig-Message-ID: <7gj3ie$pt8 AT library3 DOT airnews DOT net>
References: <Sh2X2.3160$%W6 DOT 6264 AT wagner DOT videotron DOT net>
Abuse-Reports-To: abuse at airmail.net to report improper postings
NNTP-Proxy-Relay: library3
NNTP-Posting-Time: Sun May 2 22:01:34 1999
NNTP-Posting-Host: !b\GW1k-VnVqInD (Encoded at Airnews!)
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MIMEOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

OmniMeta wrote in message ...
>Can someone please tell me what is wrong in the lecture(int id)
function ?


Nothing.  The problem is in the calling function.  You forgot to use 2
equal signs:
>
>  ...
>  while(!lecture(i)=EOF)
>  ...


Should be:
  while(!lecture(i)==EOF)

Or:
  while(lecture(i)!=EOF)

jdm



- Raw text -


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