| www.delorie.com/archives/browse.cgi | search |
| From: | "abacuc" <f DOT onorati AT tiscalinet DOT it> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | editor |
| Date: | Sat, 11 Nov 2000 01:32:41 +0100 |
| Organization: | Tiscali Spa |
| Lines: | 29 |
| Message-ID: | <8ui41b$2nn$1@lacerta.tiscalinet.it> |
| NNTP-Posting-Host: | rm2-806.dialup.tiscalinet.it |
| X-Trace: | lacerta.tiscalinet.it 973902699 2807 62.11.126.102 (11 Nov 2000 00:31:39 GMT) |
| X-Complaints-To: | newsadmin AT tiscali DOT it |
| NNTP-Posting-Date: | 11 Nov 2000 00:31:39 GMT |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 5.00.2919.6600 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2919.6600 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
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 |