P
Parity
Is there some standard) way to make ostream automatically insert
whitespace character after something is inserted into stream using
operator <<?
For example:
int x=10, y=20, z=30;
ofs << "(" << x << y << z << ")\n";
should yield "(10 20 30)" - not "(102030)". My current way around this
induces very messy code, especially when there are more than three
variables written at once:
ofs << "(" << x << " " << y << " " << z << ")\n";
whitespace character after something is inserted into stream using
operator <<?
For example:
int x=10, y=20, z=30;
ofs << "(" << x << y << z << ")\n";
should yield "(10 20 30)" - not "(102030)". My current way around this
induces very messy code, especially when there are more than three
variables written at once:
ofs << "(" << x << " " << y << " " << z << ")\n";