I am using
#include <iomanip> library to format the output and it works just fine...
cout<<std::setiosflags ( std::ios_base::right ) << std::setw ( 20 ) << "---------025125222" << std::endl;
However, I wish to format the same output as a STRING.
So instead of doing cout, I want to assign it to a string? Don't ask why, I just need to.
Question is how?
An example would be great.