C
Chris Mantoulidis
Hello all... I get an error message for the following program by the
compiler:
#include <iostream>
#include <string>
using namespace std;
ostream_iterator<string> oo(cout);
int main()
{
*oo = "Hello ";
++oo;
*oo = "world!\n";
return 0;
}
the error says: "ostream_iterator is used as a type, but is not
defined as a type."... What can I do to fix that?? I get the same
error with istream_iterator...
cmad
compiler:
#include <iostream>
#include <string>
using namespace std;
ostream_iterator<string> oo(cout);
int main()
{
*oo = "Hello ";
++oo;
*oo = "world!\n";
return 0;
}
the error says: "ostream_iterator is used as a type, but is not
defined as a type."... What can I do to fix that?? I get the same
error with istream_iterator...
cmad