Snapping in command prompt

I wrote a program to line up decimal points like std::right | std::fixed,
but with the added ability to line up said points with a prefix symbol like $.

Horizontal tabs and setw() destroy the formatting, so I'm forced to output single whitespace characters explicitly. Is there a way to prevent what I believe to be output snapping to a certain column when tabbed over?
Topic archived. No new replies allowed.