| www.delorie.com/archives/browse.cgi | search |
| From: | "Edmund Horner" <ejrh AT paradise DOT net DOT nz> |
| Newsgroups: | comp.os.msdos.djgpp |
| References: | <8ui41b$2nn$1 AT lacerta DOT tiscalinet DOT it> |
| Subject: | Re: editor |
| Lines: | 37 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 5.50.4133.2400 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
| Organization: | Paradise Net |
| Message-ID: | <973908843.424151@shelley.paradise.net.nz> |
| Cache-Post-Path: | shelley.paradise.net.nz!unknown AT 203-79-65-115 DOT tnt8 DOT paradise DOT net DOT nz |
| X-Cache: | nntpcache 2.4.0b5 (see http://www.nntpcache.org/) |
| Date: | Sat, 11 Nov 2000 15:15:58 +1300 |
| NNTP-Posting-Host: | 203.96.152.26 |
| X-Complaints-To: | newsadmin AT xtra DOT co DOT nz |
| X-Trace: | news.xtra.co.nz 973908844 203.96.152.26 (Sat, 11 Nov 2000 15:14:04 NZDT) |
| NNTP-Posting-Date: | Sat, 11 Nov 2000 15:14:04 NZDT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
We can't tell you what's wrong with prova.c unless you show us what it looks
like! You obviously typed #include somewhere while running your program,
but didn't finish it properly.
"abacuc" <f DOT onorati AT tiscalinet DOT it> wrote in message
news:8ui41b$2nn$1 AT lacerta DOT tiscalinet DOT it...
> I wrote this short program:
>
> #include<stdio.h>
> #include<pc.h>
> #include<keys.h>
> #include<conio.h>
> int main()
> {
> int car;
> FILE *pf;
>
> clrscr();
> pf=fopen("prova.c","w");
> while((car=getxkey())!=K_F1)
> {
> putch(car);
> fputc(car,pf);
> }
> fclose(pf);
> return 0;
> }
>
> then I compiled and ran it. I wrote the classical hello program and
> than i opened it with an editor and so i could control that the prova.c
> file was correct. So i compiled prova.c but i received this error message:
> #include expects "FILENAME" or <FILENAME>
> why happens this? and how can i resolve this problem?
>
>
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |