You don't need the
print function. Just do this:
Code:
cout << x << /*some form of separation here, like a space*/ << y ... << endl;
I think (maybe) part of what's confusing you is that the output doesn't have any separations between fields, so instead of getting
123 45678.9 you get
12345678.9.