#include
#include
using namespace std;
int main()
{
ostream_iterator out_it(cout);
*out_it = 'X';
out_it++;
*out_it = 'Y';
out_it++;
*out_it = ' ';
char str[] = "this is a test";
char *p = str;
while(*p)
*out_it++ = *p++;
ostream_iterator out_double_it(cout);
*out_double_it = 187.23;
out_double_it++;
*out_double_it = -102.7;
return 0;
}