I am actively involved in working with I / O in C ++ (currently using it for print headers, tables, some data alignments) and wonder about this proper / big use in open source projects or common examples / nippets
I use things like this:
cout.setf(ios::right,ios::jyustified);
cout<<std::setw()
std::copy (vector.begin(), vector.end(), std::osteam_iterator<const Foo *>
std::cout,"\n");
locale mylocale("");
cout.imbue( mylocale );
I do not like my current implementation, since I have a lot of coercion (\t)and spacesto ensure the right indentation. Therefore, I want to see how I / O is used by top-level professionals.
source
share