|
From: Daniel G. <sp...@ho...> - 2002-10-09 15:42:55
|
Oh yes of course, that was a schoolboy error there lol. Been doing non-programming projects at work, and I need the C++ practice! >From: "Abhijit Shylanath" <mu...@gm...> >To: "Daniel Glenfield" ><sp...@ho...>,<big...@ya...>,<dev...@li...> >Subject: Re: [Dev-C++] printer >Date: Wed, 9 Oct 2002 20:55:36 +0530 > > > Have you forgotten to include a header file? Does conio.h have the FILE > > declaration in it? > >Nope, <stdio.h> does. > > > Also, your if statement ( if (fp) ), won't that return true is the >pointer > > is anything but null? Shouldn't it be *fp ? Or something? > >No, actually, if(fp) is right. This is basically > >if(fp != NULL), which is what we're checking for. We're checking the >pointer, not the value of the structure (which could be anything, it's >totally unrelated to the pointer). > >___________________________________________________________ > >Abhijit Shylanath > >E-mail: mu...@gm... || ibr...@bi... >Web-site: http://mudeth.tripod.com/ _________________________________________________________________ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com |