I'm creating a program that gets a name and phone number from user input and puts it in a list. It starts out with a blank list, numbered 1 through 20, that looks like this:
1. (000) 000-0000
2. (000) 000-0000
3. (000) 000-0000
4. (000) 000-0000
5. (000) 000-0000
I can't figure out how to get the phone numbers all lined up vertically, because the length of each name the user enters will be different (this is why setw() doesn't work).
Any ideas? Let me know if you want me to post the code I have so far.