This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FW: how to associate fstream object with stdout


Title: FW: how to associate fstream object with stdout

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]