From: yc12 AT uow DOT edu DOT au (yc) Newsgroups: comp.os.msdos.djgpp Subject: Re: scan() in c++ Date: 9 Feb 2003 21:52:55 -0800 Organization: http://groups.google.com/ Lines: 26 Message-ID: <9ec55012.0302092152.7b1b20f@posting.google.com> References: <200301280550 DOT h0S5ohlA017021 AT chac DOT its DOT uow DOT edu DOT au> NNTP-Posting-Host: 130.130.88.100 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1044856375 24742 127.0.0.1 (10 Feb 2003 05:52:55 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 10 Feb 2003 05:52:55 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > It's quite simple, the first problem is in TLSTM::LoadPar() > > pFile->scan("NbPredictNextIn:"); > > pFile is an fstream* declared in TIOBase, as such it doesn't have a scan > method; you'll need to implement this. Thanks. I find the following sentence in fstream.h class fstream : public fstreambase, public iostream { and class iostream : public istream, public ostream istream& scan(const char *format ...); in iostream.h, and TIOBase::TIOBase() { pFile = new fstream(); } in IOBase.cpp. The scan method seems existing. How to implement it? And need I include IOBase.cpp when compiling LSTM.cpp?