I have an application that lets the user enter a string. I then count the string and put the number of characters next to it. The problem comes when I want put it in columns such as:
This is a Sentence The Len is 18
This is Another Sentence The Len is 24
A The Len is 1
How would I calculate the setw() of the columns? str.size() and then something else I can't get it exactly right it's always wobbley.