From: "jdm" 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: X-Orig-Message-ID: <7gj3ie$pt8 AT library3 DOT airnews DOT net> References: 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