From: "hjy" Newsgroups: comp.os.msdos.djgpp Subject: ostream_iterator undeclared in namespace 'std' Date: Mon, 7 Oct 2002 14:59:41 +0800 Organization: National Taiwan University Lines: 12 Message-ID: NNTP-Posting-Host: 203.68.31.83 X-Trace: gemini.ntu.edu.tw 1033973787 229 203.68.31.83 (7 Oct 2002 06:56:27 GMT) X-Complaints-To: postmaster AT news DOT ntu DOT edu DOT tw NNTP-Posting-Date: 7 Oct 2002 06:56:27 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I use declaration std::ostream_iterator output(cout," "); in C++ program, the compiler complained: ostream_iterator undeclared The same declaration is OK in Visual C++. What is the problem? Thanks