Re: writing data to file
On Mar 19, 3:49 pm, Michael DOUBEZ <michael.dou...@free.fr> wrote:
Raj wrote:
One more additional thing, I am using Visual Studio 08 for
compiling the C program. I haven't included the iostream.h
You shoud however include <iostream> not <iostream.h>.
in the program as there is no iostream header file in the
library. (in the same folder as stdio.h)
Did you have a look in "Program Files\Microsoft Visual
Studio\VC98\Include" ? (Path may change a bit).
Just a nit, but you really shouldn't bother. Visual Studio is a
modern C++ compiler; he's writing new code. He should just
include <iostream>, and be done with it; if that doesn't work
(but it will), then you can forget about using the compiler for
any serious C++ work. (Normally, I would expect <iostream.h> to
work as well. But only to support legacy code, since it worked
in earlier versions of VC++. Whether it works or not is
completely irrelevant for new code.)
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34