delorie.com/archives/browse.cgi | search |
From: | Andris <pavenis AT lanet DOT lv> |
Organization: | Pavenis |
To: | djgpp AT delorie DOT com, "hjy" <hjy AT ceec DOT edu DOT tw> |
Subject: | Re: ostream_iterator undeclared in namespace 'std' |
Date: | Mon, 7 Oct 2002 12:51:03 +0300 |
User-Agent: | KMail/1.4.7 |
References: | <anrb6r$75$1 AT gemini DOT ntu DOT edu DOT tw> |
In-Reply-To: | <anrb6r$75$1@gemini.ntu.edu.tw> |
MIME-Version: | 1.0 |
Message-Id: | <200210071251.03268.pavenis@lanet.lv> |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id g979pDR12021 |
Reply-To: | djgpp AT delorie DOT com |
On Monday 07 October 2002 09:59, hjy wrote: > I use declaration > std::ostream_iterator<int> output(cout," "); > in C++ program, the compiler complained: > ostream_iterator undeclared > > The same declaration is OK in Visual C++. > > What is the problem? Try #include <iterator>
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |