| delorie.com/archives/browse.cgi | search |
| From: | Alexei Levenko <alexei DOT Levenko AT in DOT stud DOT tu-ilmenau DOT de> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Help with EOF |
| Date: | Sun, 11 Jul 1999 18:22:30 +0200 |
| Organization: | TU Ilmenau |
| Lines: | 12 |
| Message-ID: | <3788C4C6.59A15788@in.stud.tu-ilmenau.de> |
| References: | <37877c8f DOT 2555669 AT news DOT smartnet DOT com DOT sg> |
| NNTP-Posting-Host: | lanai.theoinf.tu-ilmenau.de |
| Mime-Version: | 1.0 |
| X-Mailer: | Mozilla 4.61 [en] (Win95; I) |
| X-Accept-Language: | en,ru |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
[skip] > > okay... the error is... '-1' cannot be used as a function > so how do i make this while loop work? you have already been answered this (I mean, feof() and stuff) another problem with this source is that line: fscanf(file, "%d %d %d\n", n1, n2, n3); perhaps you wanted it that way: fscanf(file, "%d %d %d", &n1, &n2, &n3); "\n" wasnt quite needed either (although not 100% sure)
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |