FW: how to associate fstream object with stdout
Ajay Bansal
Ajay_Bansal@infosys.com
Thu Jan 30 18:51:00 GMT 2003
Ne pointers on this?????
> -----Original Message-----
> From: Gagan Puri
> Sent: Friday, January 31, 2003 12:25 AM
> To: Ajay Bansal
> Subject: how to associate fstream object with stdout
>
> Hi All,
>
> Following piece of code works with gcc 2.95
>
>
> fstream * pcout
> pcout = new fstream(1); //set the output stream to stdout'
> pcout<<"any thing"
>
>
> But with gcc 3.21, pcout = new fstream(1); is not allowed. So how
> can associate my fstream object with stdout in gcc 3.21.
>
> Kindly advise,
>
> Gagan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20030130/ba1198e1/attachment.htm>
More information about the Gcc-help
mailing list