I want to print a string of int double double double double double double in a table made of ASCII characters. What ways are there to keep the values aligned with the table headers and ensure they don’t ‘overflow’?
My table header looks something like this:
+---------+------+------+------+---------+---------+---------+
NrCamere | smin smax smed | pmin pmax pmed
+---------+------+------+------+---------+---------+---------+
That would print the two doubles with 10 characters width max.