|
From: Nancy A. <nai...@ho...> - 2002-06-10 01:03:57
|
Hi alls
I have read a list of pair of dates (x,fx) from a file and work with these..
My program don´t found this file and no display the message
^File no found" . I don´t know what is happening. Does somebody have one
answer?
.
int main();
.
ifstream f_in;
..
..
f_in.open("prova2.dat");
if(f_in==NULL)
{
cout<<" Arquivo não encontrado";
}
f_in>> x >> fx;
cout << x << fx;
f_in.close();
system("PAUSE");
return 0;
}
>From: "Ioannis Vranos" <no...@ho...>
>To: "Dev-C++ Mailing List" <dev...@li...>
>Subject: RE: [Dev-C++] memory violation....
>Date: Mon, 10 Jun 2002 02:07:38 +0300
>
> > -----Original Message-----
> > From: dev...@li...
> > [mailto:dev...@li...] On Behalf
> > Of Jason Hardman
> > Sent: Monday, June 10, 2002 1:12 AM
> > To: Dev-C++
> > Subject: Re: [Dev-C++] memory violation....
> >
> >
> > You should check that "EleTopo" is non-null before using it,
> > just in case the memory allocation
> > failed. I can't remember if the current MinGW used with
> > Dev-C++ is standards compliant enought to
> > throw an exception when memory allocation fails.
>
>
>It is, and no, 0 can not be returned by new.
>
>
>Ioannis
>
>* Ioannis Vranos
>* Programming pages: http://www.noicys.cjb.net
>* Alternative URL: http://run.to/noicys
>
>_______________________________________________________________
>
>Don't miss the 2002 Sprint PCS Application Developer's Conference
>August 25-28 in Las Vegas -
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Envíe y reciba su correo de Hotmail desde el móvil: http://mobile.msn.com
|