I am heavily involved in doing I/O in C++ (currently using it for printing headers, tables, some data alignments), and wonder about it proper/great usage in either open source projects or general examples/nippets
I use things such:
cout.setf(ios::right,ios::jyustified);
cout<<std::setw()
std::copy (vector.begin(), vector.end(), std::osteam_iterator<const Foo *>
std::cout,"\n"); //provided I have operator << in/for Foo
locale mylocale("");
cout.imbue( mylocale );
I don't like my current implementation, as I have a lot of forced (\t)
and spaces
to ensure correct indentation. Hence I want to see how I/O is used by top notch professionals.