I've read about print formatting and still don't know what i'm doing. All i'm trying to do is print data that currently prints in a line straight down and make it print in a table form.
I've read about print formatting and still don't know what i'm doing. All i'm trying to do is print data that currently prints in a line straight down and make it print in a table form.
>and make it print in a table form
Some of this you've probably already tried, but here are some options. You can use std::setw() to set the width of each column. Also remember that by default, all output is right justified in the field (column). You can use std::left and std::right to change the justification.
And if you're not happy with that, there's always printf().
i got it thanks for all the help i appreciate it.
Last edited by DarkDot; 05-07-2007 at 05:31 PM.